Loading ttcn/CAM/LibItsCam_Templates.ttcn +50 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,9 @@ */ module LibItsCam_Templates { // LibCommon import from LibCommon_BasicTypesAndValues all; // LibIts import from ITS_Container language "ASN.1:1997" all; import from CAM_PDU_Descriptions language "ASN.1:1997" all; Loading @@ -29,7 +32,53 @@ module LibItsCam_Templates { template CamInd mw_camInd ( in template (present) CAM p_camMsg ) := { msgIn := p_camMsg msgIn := p_camMsg, gnNextHeader := *, gnHeaderType := *, gnHeaderSubtype := *, gnLifetime := *, gnTrafficClass := *, btpDestinationPort := *, btpInfo := * }; /** * @desc Receive template for CAM Message (CamPort Primitive) * @param p_camMsg CAM Message to be sent * @param p_gnNextHeader GN next header value * @param p_gnHeaderType GN header type value * @param p_gnHeaderSubtype GN header subtype value * @param p_gnLifetime GN packet lifetime value (ms) * @param p_gnTrafficClass GN traffic class value */ template CamInd mw_camIndWithGnParameters ( in template (present) CAM p_camMsg, in template UInt8 p_gnNextHeader := *, in template UInt8 p_gnHeaderType := *, in template UInt8 p_gnHeaderSubtype := *, in template UInt32 p_gnLifetime := *, in template UInt8 p_gnTrafficClass := * ) modifies mw_camInd := { gnNextHeader := p_gnNextHeader, gnHeaderType := p_gnHeaderType, gnHeaderSubtype := p_gnHeaderSubtype, gnLifetime := p_gnLifetime, gnTrafficClass := p_gnTrafficClass }; /** * @desc Receive template for CAM Message (CamPort Primitive) * @param p_camMsg CAM Message to be sent * @param p_btpDestinationPort BTP destination port value * @param p_btpInfo BTP destination port info value (if BTP-B) or BTP source port value (if BTP-A) */ template CamInd mw_camIndWithBtpParameters ( in template (present) CAM p_camMsg, in template UInt8 p_btpDestinationPort := *, in template UInt8 p_btpInfo := * ) modifies mw_camInd := { btpDestinationPort := p_btpDestinationPort, btpInfo := p_btpInfo }; /** Loading ttcn/CAM/LibItsCam_TestSystem.ttcn +10 −2 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ module LibItsCam_TestSystem { // LibCommon import from LibCommon_Time {modulepar all}; import from LibCommon_Sync all; import from LibCommon_BasicTypesAndValues all; // LibIts import from CAM_PDU_Descriptions language "ASN.1:1997" all; Loading Loading @@ -104,7 +105,14 @@ module LibItsCam_TestSystem { * @desc FA1 CAM Indication Primitive */ type record CamInd { CAM msgIn CAM msgIn, UInt8 gnNextHeader optional, UInt8 gnHeaderType optional, UInt8 gnHeaderSubtype optional, UInt32 gnLifetime optional, UInt8 gnTrafficClass optional, UInt16 btpDestinationPort optional, UInt16 btpInfo optional } with { encode (msgIn) "LibItsCam_asn1" Loading Loading
ttcn/CAM/LibItsCam_Templates.ttcn +50 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,9 @@ */ module LibItsCam_Templates { // LibCommon import from LibCommon_BasicTypesAndValues all; // LibIts import from ITS_Container language "ASN.1:1997" all; import from CAM_PDU_Descriptions language "ASN.1:1997" all; Loading @@ -29,7 +32,53 @@ module LibItsCam_Templates { template CamInd mw_camInd ( in template (present) CAM p_camMsg ) := { msgIn := p_camMsg msgIn := p_camMsg, gnNextHeader := *, gnHeaderType := *, gnHeaderSubtype := *, gnLifetime := *, gnTrafficClass := *, btpDestinationPort := *, btpInfo := * }; /** * @desc Receive template for CAM Message (CamPort Primitive) * @param p_camMsg CAM Message to be sent * @param p_gnNextHeader GN next header value * @param p_gnHeaderType GN header type value * @param p_gnHeaderSubtype GN header subtype value * @param p_gnLifetime GN packet lifetime value (ms) * @param p_gnTrafficClass GN traffic class value */ template CamInd mw_camIndWithGnParameters ( in template (present) CAM p_camMsg, in template UInt8 p_gnNextHeader := *, in template UInt8 p_gnHeaderType := *, in template UInt8 p_gnHeaderSubtype := *, in template UInt32 p_gnLifetime := *, in template UInt8 p_gnTrafficClass := * ) modifies mw_camInd := { gnNextHeader := p_gnNextHeader, gnHeaderType := p_gnHeaderType, gnHeaderSubtype := p_gnHeaderSubtype, gnLifetime := p_gnLifetime, gnTrafficClass := p_gnTrafficClass }; /** * @desc Receive template for CAM Message (CamPort Primitive) * @param p_camMsg CAM Message to be sent * @param p_btpDestinationPort BTP destination port value * @param p_btpInfo BTP destination port info value (if BTP-B) or BTP source port value (if BTP-A) */ template CamInd mw_camIndWithBtpParameters ( in template (present) CAM p_camMsg, in template UInt8 p_btpDestinationPort := *, in template UInt8 p_btpInfo := * ) modifies mw_camInd := { btpDestinationPort := p_btpDestinationPort, btpInfo := p_btpInfo }; /** Loading
ttcn/CAM/LibItsCam_TestSystem.ttcn +10 −2 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ module LibItsCam_TestSystem { // LibCommon import from LibCommon_Time {modulepar all}; import from LibCommon_Sync all; import from LibCommon_BasicTypesAndValues all; // LibIts import from CAM_PDU_Descriptions language "ASN.1:1997" all; Loading Loading @@ -104,7 +105,14 @@ module LibItsCam_TestSystem { * @desc FA1 CAM Indication Primitive */ type record CamInd { CAM msgIn CAM msgIn, UInt8 gnNextHeader optional, UInt8 gnHeaderType optional, UInt8 gnHeaderSubtype optional, UInt32 gnLifetime optional, UInt8 gnTrafficClass optional, UInt16 btpDestinationPort optional, UInt16 btpInfo optional } with { encode (msgIn) "LibItsCam_asn1" Loading