LibItsAtsp_Templates.ttcn3 40.3 KB
Newer Older
garciay's avatar
garciay committed

	            /**
	            * @desc    Send template 
				* Link-ID based on the combination of remote and local CIID
	            * @param   p_remoteLinkId  Remote link ID
	            * @param   p_localLinkId   Local link ID
	            * @see     ISO 21218 - Clause 8.2.2
	            */
	            template (value) Link_ID m_linkId(
	                in template EUI64 p_remoteLinkId,
	                in template EUI64 p_localLinkId
	            ) := {
	                remoteCIID := p_remoteLinkId,
	                localCIID := p_localLinkId
	            }; // End of template m_linkID
				
			} // End of group ut_atspPortTools
			
		} // End of group recvOperation
			
	
	group atspInitPrimitives {    
        /**
         * @desc Templates used to 
         * <li>trigger message on Upper Tester</li>
         * <li>capture indication message sent by the IUT</li>
         */
        group utPrimitives {

            /**
             * @desc Initializes the SUT for ATSP testing 
             * See Test System Configuration Access to SUT
             */
			template (value) UtInitialize m_utAtspInitialize := { 
                utAtspInitialize := { 
                    mcmdRq := { 
                        mCmdRef := 255, 
                        mcmd := { 
                            TestConfigIICP := { 
                                location := '100000'B, // PX_LOC_ITS_ATSP_ACCESS_SETTINGS_MX_SAP_SET, 
                                lowerLayers := PX_IUT_LOWER_LAYER_USED,
                                testMode := PX_IUT_TEST_MODE_ON 
                            } 
                        } // End of field 'mcmd' 
                    } // End of field 'mcmdRq'
                } // End of field 'utAtspInitialize' 
            } // End of template m_utAtspInitialize 
            
        } // End of group utPrimitives
        
        group cfPrimitives { 
            
            /**
             * @desc Initializes the Configuration tester
             */
            template (value) CfInitialize m_cfAtspInitialize := { 
                cfAtspInitialize := { 
                } // End of field 'cfAtspInitialize' 
				
            } // End of template m_cfAtspInitialize 
	
		} // End of group cfPrimitives

	} // End of group atspInitPrimitives
	

} // End of module LibItsAtsp_Templates