Commit 6dbc85d1 authored by filatov's avatar filatov
Browse files

TITANIZATION: Add EncdecDeclarations and other files.

parent a61accf1
module LibItsBtp_EncdecDeclarations {
// LibItsBtp
import from LibItsBtp_TypesAndValues all;
external function fx_enc_BtpPayload (BtpPayload p) return bitstring
with {extension "prototype(convert) encode(LibItsBtp)"}
/* TODO RGy function not implemented! (decvalue() not used by test suite @29-06-2016)
external function fx_dec_BtpPayload (inout bitstring b, out BtpPayload p) return integer
with {extension "prototype(sliding) decode(LibItsBtp)"}
*/
} // End of module LibItsBtp_EncdecDeclarations
module LibItsCam_EncdecDeclarations {
// LibIts
import from ITS_Container language "ASN.1:1997" all;
import from CAM_PDU_Descriptions language "ASN.1:1997" all;
import from DENM_PDU_Descriptions language "ASN.1:1997" all;
// LibItsCam
import from LibItsCam_TestSystem all;
external function fx_enc_CamReq (CamReq p) return bitstring
with {extension "prototype(convert) encode(LibIts_Interface)"}
external function fx_enc_CAM (CAM p) return octetstring
with {extension "prototype(convert) encode(BER:BER_ENCODE_CER)"}
/* TODO RGy function not implemented! (decvalue() not used by test suite @29-06-2016)
external function fx_dec_CamReq (inout bitstring b, out CamReq p) return integer
with {extension "prototype(sliding) decode(LibIts_Interface)"}
*/
} // End of module LibItsCam_EncdecDeclarations
......@@ -33,6 +33,7 @@ module LibItsCam_Functions {
import from LibItsCam_TypesAndValues all;
import from LibItsCam_Pics all;
import from LibItsCam_Pixits all;
import from LibItsCam_EncdecDeclarations all;
group utFuntions {
......
......@@ -23,6 +23,7 @@ module LibItsCam_Templates {
// LibItsCommon
import from LibItsCommon_Functions all;
import from LibItsCommon_TypesAndValues all;
import from LibItsCommon_ASN1_NamedNumbers all;
// LibItsCam
import from LibItsCam_TestSystem all;
......
......@@ -157,4 +157,4 @@ module LibItsCam_TestSystem {
encode "LibIts_Interface"
} // end interfacePrimitives
} // End of module LibIts_TestSystem
} // End of module LibItsCam_TestSystem
//This module contains TTCN-3 values for ASN.1 named numbers, aligned with TTWorkbench name convention
module LibItsCommon_ASN1_ISDSRC_NamedNumbers {
import from IS_DSRC language "ASN.1:1997" all;
group IS_DSCR_constants {
group LaneParameter_constants {
const LaneAttributes_Barrier LaneAttributes_Barrier_median_RevocableLane_ := '0000000000000000'B;
const LaneAttributes_Bike LaneAttributes_Bike_bikeRevocableLane_ := '0000000000000000'B;
const LaneAttributes_Crosswalk LaneAttributes_Crosswalk_crosswalkRevocableLane_ := '0000000000000000'B;
const LaneAttributes_Parking LaneAttributes_Parking_parkingRevocableLane_ := '0000000000000000'B;
const LaneAttributes_Sidewalk LaneAttributes_Sidewalk_sidewalk_RevocableLane_ := '0000000000000000'B;
const LaneAttributes_Striping LaneAttributes_Striping_stripeToConnectingLanesRevocableLane_ := '0000000000000000'B;
const LaneAttributes_TrackedVehicle LaneAttributes_TrackedVehicle_spec_RevocableLane_ := '0000000000000000'B;
const LaneAttributes_Vehicle LaneAttributes_Vehicle_isVehicleRevocableLane_ := '00000000'B;
const LaneDirection LaneDirection_ingressPath_ := '00'B;
const LaneDirection LaneDirection_egressPath_ := '01'B;
} //end LaneParameter_constants
group Intersection_constants {
const IntersectionStatusObject IntersectionStatusObject_manualControlIsEnabled_ := '0000000000000000'B;
const IntersectionStatusObject IntersectionStatusObject_stopTimeIsActivated_ := '0000000000000001'B;
const IntersectionStatusObject IntersectionStatusObject_failureFlash_ := '0000000000000010'B;
const IntersectionStatusObject IntersectionStatusObject_preemptIsActive_ := '0000000000000011'B;
const IntersectionStatusObject IntersectionStatusObject_signalPriorityIsActive_ := '0000000000000100'B;
const IntersectionStatusObject IntersectionStatusObject_fixedTimeOperation_ := '0000000000000101'B;
const IntersectionStatusObject IntersectionStatusObject_trafficDependentOperation_ := '0000000000000110'B;
const IntersectionStatusObject IntersectionStatusObject_standbyOperation_ := '0000000000000111'B;
const IntersectionStatusObject IntersectionStatusObject_failureMode_ := '0000000000001000'B;
const IntersectionStatusObject IntersectionStatusObject_off_ := '0000000000001001'B;
const IntersectionStatusObject IntersectionStatusObject_recentMAPmessageUpdate_ := '0000000000001010'B;
const IntersectionStatusObject IntersectionStatusObject_recentChangeInMAPassignedLanesIDsUsed_ := '0000000000001011'B;
const IntersectionStatusObject IntersectionStatusObject_noValidMAPisAvailableAtThisTime_ := '0000000000001100'B;
const IntersectionStatusObject IntersectionStatusObject_noValidSPATisAvailableAtThisTime_ := '0000000000001101'B;
} //end Intersection_constants
} // end IS_DSCR_constants
} // End of module LibItsCommon_ASN1_ISDSRC_NamedNumbers
This diff is collapsed.
module LibItsDenm_EncdecDeclarations {
import from LibItsDenm_TestSystem all;
import from DENM_PDU_Descriptions language "ASN.1:1997" all;
external function fx_enc_DenmReq (DenmReq p) return bitstring
with {extension "prototype(convert) encode(LibIts_Interface)"}
external function fx_enc_DENM (DENM p) return octetstring
with {extension "prototype(convert) encode(BER:BER_ENCODE_CER)"}
/* not needed yet, no decvalue is used in TTCN-3 code
external function fx_dec_DenmReq (inout bitstring b, out DenmReq p) return integer
with {extension "prototype(sliding) decode(LibIts_Interface)"}
*/
} // End of module LibItsDenm_EncdecDeclarations
module LibItsGeoNetworking_EncdecDeclarations {
import from LibItsGeoNetworking_TypesAndValues all;
external function fx_enc_GeoNetworkingPdu (GeoNetworkingPdu p) return bitstring
with {extension "prototype(convert) encode(LibItsGeoNetworking)"}
external function fx_dec_GeoNetworkingPdu (inout bitstring b, out GeoNetworkingPdu p) return integer
with {extension "prototype(sliding) decode(LibItsGeoNetworking)"}
external function fx_enc_Payload (Payload p) return bitstring
with {extension "prototype(convert) encode(LibItsGeoNetworking)"}
external function fx_dec_Payload (inout bitstring b, out Payload p) return integer
with {extension "prototype(sliding) decode(LibItsGeoNetworking)"}
external function fx_enc_GnNonSecuredPacket (GnNonSecuredPacket p) return bitstring
with {extension "prototype(convert) encode(LibItsGeoNetworking)"}
external function fx_dec_GnNonSecuredPacket (inout bitstring b, out GnNonSecuredPacket p) return integer
with {extension "prototype(sliding) decode(LibItsGeoNetworking)"}
/*
external function fx_enc_GeoSecuredMessage (GeoNetworkingPacket.securedMsg p) return bitstring
with {extension "prototype(convert) encode(LibItsSecurity)"}
external function fx_dec_GeoSecuredMessage (inout bitstring b, out GeoNetworkingPacket.securedMsg p) return integer
with {extension "prototype(sliding) decode(LibItsSecurity)"}
*/
} // End of module LibItsGeoNetworking_EncdecDeclarations
......@@ -38,6 +38,7 @@ module LibItsGeoNetworking_Functions {
import from LibItsGeoNetworking_Templates all;
import from LibItsGeoNetworking_Pixits all;
import from LibItsGeoNetworking_Pics all;
import from LibItsGeoNetworking_EncdecDeclarations all;
group utFuntions {
......
......@@ -21,6 +21,7 @@ module LibItsGeoNetworking_Templates {
// LibItsBtp
import from LibItsBtp_Templates all;
import from LibItsBtp_EncdecDeclarations all;
// LibItsSecurity
import from LibItsSecurity_TypesAndValues all;
......@@ -34,6 +35,7 @@ module LibItsGeoNetworking_Templates {
import from LibItsGeoNetworking_TestSystem all;
import from LibItsGeoNetworking_TypesAndValues all;
import from LibItsGeoNetworking_Pixits all;
import from LibItsGeoNetworking_EncdecDeclarations all;
group geoNwPrimitivesTemplates {
......
//This module contains TTCN-3 values for ASN.1 named numbers, aligned with TTWorkbench name convention
module LibItsIvim_ASN1_IVInamedNumbers {
import from IVI language "ASN.1:1997" all;
group IVI_constants {
const IviStatus IviStatus_new_ := 0;
const IviStatus IviStatus_update_ := 1;
const IviStatus IviStatus_cancellation_ := 2;
const IviStatus IviStatus_negation_ := 3;
} // end IVI_constants
} // End of module LibItsIvim_ASN1_IVInamedNumbers
module LibItsIvim_EncdecDeclarations {
// LibIts
import from IVIM_PDU_Descriptions all;
external function fx_enc_IVIM (IVIM p) return octetstring
with {extension "prototype(convert) encode(BER:BER_ENCODE_CER)"}
}
......@@ -26,11 +26,13 @@ module LibItsIvim_Templates {
import from LibItsCommon_TypesAndValues all;
import from LibItsCommon_Functions all;
import from LibItsCommon_Pixits all;
import from LibItsCommon_ASN1_NamedNumbers all;
// LibItsIvim
import from LibItsIvim_TestSystem all;
import from LibItsIvim_TypesAndValues all;
import from LibItsIvim_Functions all;
import from LibItsIvim_ASN1_IVInamedNumbers all;
group asn1Constants {
} // End of group asn1Constants
......
module LibItsMapemSpatem_EncdecDeclarations {
// LibIts
import from MAPEM_PDU_Descriptions all;
import from SPATEM_PDU_Descriptions all;
external function fx_enc_MAPEM (MAPEM pdu) return octetstring
with {extension "prototype(convert) encode(BER:BER_ENCODE_CER)"}
external function fx_dec_MAPEM (octetstring stream) return MAPEM
with {extension "prototype(convert) decode(BER:BER_ACCEPT_ALL)"}
external function fx_enc_SPATEM (SPATEM pdu) return octetstring
with {extension "prototype(convert) encode(BER:BER_ENCODE_CER)"}
external function fx_dec_SPATEM (octetstring stream) return SPATEM
with {extension "prototype(convert) decode(BER:BER_ACCEPT_ALL)"}
} // End of module LibItsMapemSpatem_EncdecDeclarations
......@@ -24,6 +24,8 @@ module LibItsMapemSpatem_Templates {
// LibItsCommon
import from LibItsCommon_Functions all;
import from LibItsCommon_TypesAndValues all;
import from LibItsCommon_ASN1_NamedNumbers all;
import from LibItsCommon_ASN1_ISDSRC_NamedNumbers all;
// LibItsMapemSpatem
import from LibItsMapemSpatem_TestSystem all;
......
module LibItsSecurity_EncdecDeclarations {
import from LibItsSecurity_TypesAndValues all;
//encoding functions
external function fx_enc_SecuredMessage (SecuredMessage p) return bitstring
with {extension "prototype(convert) encode(LibItsSecurity)"}
external function fx_enc_ToBeSignedSecuredMessage (ToBeSignedSecuredMessage p) return bitstring
with {extension "prototype(convert) encode(LibItsSecurity)"}
external function fx_enc_Certificate (Certificate p) return bitstring
with {extension "prototype(convert) encode(LibItsSecurity)"}
external function fx_enc_ToBeSignedCertificate (ToBeSignedCertificate p) return bitstring
with {extension "prototype(convert) encode(LibItsSecurity)"}
/*
//decoding functions
external function fx_dec_SecuredMessage (inout bitstring b, out SecuredMessage p) return integer
with {extension "prototype(sliding) decode(LibItsSecurity)"}
external function fx_dec_ToBeSignedSecuredMessage (inout bitstring b, out ToBeSignedSecuredMessage p) return integer
with {extension "prototype(sliding) decode(LibItsSecurity)"}
*/
external function fx_dec_Certificate (inout bitstring b, out Certificate p) return integer
with {extension "prototype(sliding) decode(LibItsSecurity)"}
/*
external function fx_dec_ToBeSignedCertificate (inout bitstring b, out ToBeSignedCertificate p) return integer
with {extension "prototype(sliding) decode(LibItsSecurity)"}
*/
} // End of module LibItsSecurity_EncdecDeclarations
......@@ -24,6 +24,7 @@ module LibItsSecurity_Functions {
import from LibItsSecurity_Templates all;
import from LibItsSecurity_Pixits all;
import from LibItsSecurity_TestSystem all;
import from LibItsSecurity_EncdecDeclarations all;
group helpersFunctions {
......
module LibItsSremSsem_EncdecDeclarations {
import from IS_DSRC all;
external function fx_enc_SSM (SignalStatusMessage p) return octetstring
with {extension "prototype(convert) encode(BER:BER_ENCODE_CER)"}
}
......@@ -24,6 +24,7 @@ module LibItsSremSsem_Templates {
// LibItsCommon
import from LibItsCommon_TypesAndValues all;
import from LibItsCommon_Functions all;
import from LibItsCommon_ASN1_NamedNumbers all;
// LibItsSremSsem
import from LibItsSremSsem_TestSystem all;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment