Commit 20650cc1 authored by schmitting's avatar schmitting
Browse files

1st skeleton for STF421 DCC

parent d9e59c65
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
module LibItsFntp_Functions {
    
    // Libcommon
    
    // LibIts
    import from LibItsAccess_Templates all;
    import from LibItsAccess_Pixits all;
    import from LibItsAccess_Pics all;
    import from LibItsDtt_Interface all; 
    
} // End of module LibItsFntp_Functions
 No newline at end of file
+10 −0
Original line number Original line Diff line number Diff line
/**
 *  @author     ETSI / STF421
 *  @version    $URL:$
 *              $Id:$
 *  @desc       DCC (TS 102 724) Pics
 *  @see        ETSI TS 102 917-1
 */
module LibItsAccess_Pics {

} // End of module LibItsAccess_Pics
 No newline at end of file
+14 −0
Original line number Original line Diff line number Diff line
/**
 *  @author     ETSI / STF421
 *  @version    $URL:$
 *              $Id:$
 *  @desc       DCC (TS 102 724) Pixits
 *  @see        ETSI TS 102 917-3
 */
module LibItsAccess_Pixits {
    
    // LibCommon
    
    // LibIts
    
} // End of module LibItsAccess_Pixits
 No newline at end of file
+62 −0
Original line number Original line Diff line number Diff line
/**
 *  @author     ETSI / STF421
 *  @version    $URL:$
 *              $Id:$
 *  @desc       DCC (TS 102 724) Templates
 *  @see        ETSI TS 102 917-3
 */
module LibItsAccess_Templates {
    
    // LibCommon
    
    // LibIts
    import from LibItsAccess_TypesAndValues all;
    import from LibItsAccess_Pixits all;
    
    group accessPrimitives {
        
        /**
         * @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_dCCProfileIdentifier) :=
               {commandReference     := p_commandReference,
                referenceBurst       := p_referenceBurst,
                requestedSendPower   := p_requestedSendPower,
                dCCProfileIdentifier := p_dCCProfileIdentifier
                } // End m_In_Request
            
            /**
             * @desc IN Status Primitive template
             */
            template InSta mw_In_Status(template integer p_commandReference,
                                        template Channel p_channel,
                                        template boolean p_transmissionSuccessStatus,
                                        template float   p_achievedSendPower) :=
               {commandReference          := p_commandReference,
                channel                   := p_channel,
                transmissionSuccessStatus := p_transmissionSuccessStatus,
                achievedSendPower         := p_achievedSendPower
               } // End mw_In_Status
            
        } // 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 LibItsAccess_Templates
 No newline at end of file
+85 −0
Original line number Original line Diff line number Diff line
/**
 *  @author     ETSI / STF421
 *  @version    $URL:$
 *              $Id:$
 *  @desc       DCC (TS 102 724) Types
 *  @see        ETSI TS 102 917-3
 */
module LibItsAccess_TypesAndValues {
    
    // LibCommon
    
    // LibIts
    
// Check later if we need to encapsulate the inSap Primitives in utAccessPrimitives
    group utAccessPrimitives {
        
        /**
         * @desc Trigger to initialize the IUT.
         */
        type record UtAccessInitialize {
        }
        
        /**
         * @desc Events at the application layer of the IUT.
         */
        type union UtAccessEvent { // FIXME To be removed
            anytype noField
        }
        
        /**
         * @desc Send a XXX.request primitive to the IUT through a SAP.
         */
        type union UtAccessCommandRequest { 
        }
        
        /**
         * @desc Receive a XXX.confirm primitive from the IUT through a SAP.
         */
        type union UtAccessCommandConfirm { 
        }
        
        /**
         * @desc Receive a XXX.indication command from the IUT through a SAP.
         */
        type union UtAccessCommandIndication { 
        }
        
    } // End of group utAccessPrimitives

    group inSapPrimitives {
        
            /**
             * @desc IN Request Primitive 
             */
            type record InReq {
                integer     commandReference,
                octetstring referenceBurst,
                float       requestedSendPower,
                integer     dCCProfileIdentifier
            } // End InReq
            
            /**
             * @desc IN Status Primitive 
             */
            type record InSta {
                integer commandReference,
                Channel channel,
                boolean transmissionSuccessStatus,
                float   achievedSendPower
            } // End InSta
            
            type enumerated Channel {
                 CCH(0),
                 SCH1(1),
                 SCH2(2),
                 SCH3(3),
                 SCH4(4)
            }
            
    } // End of group inSapPrimitives

}
with {
    encode "LibItsAccess_TypesAndValues"
} //End of module LibItsAccess_TypesAndValues
 No newline at end of file
Loading