Commit 47df4b2f authored by berge's avatar berge
Browse files

Added some CAM related cf function and pixits

parent 3097ffa3
Loading
Loading
Loading
Loading
+17 −1
Original line number Original line Diff line number Diff line
@@ -7,6 +7,22 @@
 */
 */
module LibItsCam_Functions {
module LibItsCam_Functions {
    
    
    // LibIts
    import from LibIts_TestSystem all;
    import from LibIts_Interface all; 
    
    
    /**
     * @desc 	Create Facility component and connects CAM port
     * @param	p_camPtc returned Facility component variable
     */    
    function f_cfCamUp(out ItsFa p_camPtc) {
        
        // Create Facility component
        p_camPtc := ItsFa.create("CAM Tester");
        
        // map ports
        map(p_camPtc:camPort, system:camPort);
        
    }
        
        
} // end LibItsCam_Functions
} // end LibItsCam_Functions
 No newline at end of file
+24 −0
Original line number Original line Diff line number Diff line
/**
 *	@author 	ETSI / STF405
 *  @version 	$URL: $
 *				$Id: $
 *	@desc		CAM Pixits
 *
 */
module LibItsCam_Pixits {
    
    group camPixits {
        
        /**
         * @desc CAM minimum transmission interval (in seconds)
         */
		modulepar float PX_CAM_MIN_TRANSMISSION_INTERVAL := 0.1;

        /**
         * @desc CAM maximum transmission interval (in seconds)
         */
		modulepar float PX_CAM_MAX_TRANSMISSION_INTERVAL := 1.0;

    } // end camPixits
    
} // end LibItsCam_Pixits
+12 −0
Original line number Original line Diff line number Diff line
@@ -7,6 +7,12 @@
 */
 */
module LibIts_Interface {
module LibIts_Interface {
    
    
    // LibIts
    import from LibItsCam_Pixits all;
    
    // LibCommon
    import from LibCommon_Time {modulepar all};
    
    group interfaceComponents {
    group interfaceComponents {
        
        
        /**
        /**
@@ -32,6 +38,12 @@ module LibIts_Interface {
            
            
            // FA2 ports
            // FA2 ports
            port CooperPort cooperPort;
            port CooperPort cooperPort;
            
            // timers
            timer tc_ac := PX_TAC;
            timer tc_minTransInterval := PX_CAM_MIN_TRANSMISSION_INTERVAL;
            timer tc_maxTransInterval := PX_CAM_MAX_TRANSMISSION_INTERVAL;
            
        } // end ItsFa
        } // end ItsFa


        /**
        /**