Commit de22143f authored by schmitting's avatar schmitting
Browse files

Templates added

parent d903642a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -161,8 +161,12 @@ module LibItsDcc_Functions {
    
    } // End of group utFunctions

    /**
     * @desc IN SAP functions
     */
    group inFuntions { 



    
    } // End of group inFunctions
} // End of module LibItsDcc_Functions
 No newline at end of file
+6 −0
Original line number Diff line number Diff line
@@ -223,4 +223,10 @@ module LibItsDcc_Pixits {
        
    } // end group inachievableTransmissionPower

        /**
         * @desc Give the content of the reference burst to be sent on the radio interface.
         * @see  ETSI TS 102 917-3 v1.1.1 A.3/1 
         */
        modulepar octetstring PIXIT_REFERENCE_BURST;
    
} // End of module LibItsDcc_Pixits
 No newline at end of file
+65 −38
Original line number Diff line number Diff line
@@ -11,21 +11,59 @@ module LibItsDcc_Templates {
    
    // LibIts
    import from LibItsDcc_TypesAndValues all;
    import from LibItsDcc_Pixits all;
    
    group accessPrimitives {
    /**
     * @desc Templates used to trigger actions at the Upper Tester
     * and to capture indication message sent by the IUT on the radio interface
     */
    group utPrimitives {
        /**
         * @desc UtRadioInitialize Primitive template
         */
        template UtRadioInitialize m_utRadioInitialize := 
           {
           }// End m_utRadioInitialize
        
        /**
         * @desc UtRadioEvent Primitive template
         */
        template UtRadioEvent m_utRadioEvent(template ChannelState p_cch,
                                             template ChannelState p_sch1,
                                             template ChannelState p_sch2,
                                             template ChannelState p_sch3, 
                                             template ChannelState p_sch4) := 
           {cchChannelState  := p_cch,
            sch1ChannelState := p_sch1,
            sch2ChannelState := p_sch2,
            sch3ChannelState := p_sch3,
            sch4ChannelState := p_sch4
           }// End m_utRadioEvent
        
        /**
         * @desc UtRadioCommandIndication Primitive template
         */
        template UtRadioCommandIndication m_utRadioCommandIndication(Channel p_channel,
                                                                     template integer p_measuredPower,
                                                                     template integer p_interPacketSpacing_Toff,
                                                                     template integer p_burstLength_Ton) :=
           {channel                 := p_channel,
            measuredPower           := p_measuredPower,
            interPacketSpacing_Toff := p_interPacketSpacing_Toff,
            burstLength_Ton         := p_burstLength_Ton
           } // End m_utRadioCommandIndication
           
    } // End of group utPrimitives
    
    /**
     * @desc    Primitive on IN-SAP interface
     */
    group inSapPrimitives {
            
        /**
         * @desc IN Request Primitive template
         */
        template InReq m_In_Request(integer     p_commandReference,
                                    octetstring p_referenceBurst,
                                        float       p_requestedSendPower,
                                    integer     p_requestedSendPower,
                                    integer     p_dCCProfileIdentifier) :=
           {commandReference     := p_commandReference,
            referenceBurst       := p_referenceBurst,
@@ -39,7 +77,7 @@ module LibItsDcc_Templates {
        template InSta mw_In_Status(template integer p_commandReference,
                                    template Channel p_channel,
                                    template boolean p_transmissionSuccessStatus,
                                        template float   p_achievedSendPower) :=
                                    template integer p_achievedSendPower) :=
           {commandReference          := p_commandReference,
            channel                   := p_channel,
            transmissionSuccessStatus := p_transmissionSuccessStatus,
@@ -48,15 +86,4 @@ module LibItsDcc_Templates {
        
    } // End of group inSapPrimitives
    
        /**
         * @desc Templates used to 
         * <li>trigger message on Upper Tester</li>
         * <li>capture indication message sent by the IUT</li>
         */
        group utPrimitives {
        
        } // End of group utPrimitives
        
    } // End of group accessPrimitives
    
} // End of module LibItsDcc_Templates
 No newline at end of file
+9 −6
Original line number Diff line number Diff line
@@ -23,8 +23,11 @@ module LibItsDcc_TypesAndValues {
         * @desc Radio Event to bring the IUT to defined channel states.
         */
        type record UtRadioEvent {
            Channel      channel,
            ChannelState channelState
            ChannelState cchChannelState optional,
            ChannelState sch1ChannelState optional,
            ChannelState sch2ChannelState optional,
            ChannelState sch3ChannelState optional,
            ChannelState sch4ChannelState optional
        }
        
        /**
@@ -33,8 +36,8 @@ module LibItsDcc_TypesAndValues {
        type record UtRadioCommandIndication { 
            Channel channel,
            integer measuredPower,
            integer interPacketSpacingToff,
            integer burstLengthTon
            integer interPacketSpacing_Toff,
            integer burstLength_Ton
        }
        
    } // End of group utRadioPrimitives
@@ -47,7 +50,7 @@ module LibItsDcc_TypesAndValues {
            type record InReq {
                integer     commandReference,
                octetstring referenceBurst,
                float       requestedSendPower,
                integer     requestedSendPower,
                integer     dCCProfileIdentifier
            } // End InReq
            
@@ -58,7 +61,7 @@ module LibItsDcc_TypesAndValues {
                integer commandReference,
                Channel channel,
                boolean transmissionSuccessStatus,
                float   achievedSendPower
                integer achievedSendPower
            } // End InSta
            
    } // End of group inSapPrimitives