LibItsFsap_Pixits.ttcn3 2.7 KB
Newer Older
garciay's avatar
garciay committed
/**
 *  @author     ETSI / STF422_EETS
 *  @version    $URL:$
 *              $Id:$
 *  @desc       Fast service advertisement protocol (ISO 24102-5) Pixits
 */
module LibItsFsap_Pixits {
    
    // LibCommon
    
    // LibIts
    import from CALMllsap language "ASN.1:1997" all;
    import from CALMmanagement language "ASN.1:1997" {
        type 
            ITS_scuId, Talive 
garciay's avatar
garciay committed
    };
    import from CALMiitsscu language "ASN.1:1997" {
        type 
            ITS_SCUtype 
    };
    import from CALMfsap language "ASN.1:1997" {
        type 
            ApplicationID, 
            GCsched, ServiceDataReg 
    };
    
    /**
     * @desc Local settings
     */
    group local {
        
        /**
         * @desc The own ITS scuID
         * @see ISO/WD 24102-4 - Table 2 — ITS-SCU-ID value assignment
         */
        modulepar ITS_scuId PX_LOCAL_ITS_SCU_ID := 8; 
        
        /**
         * @desc The type ITS scuID
         * @see ISO/WD 24102-4 - Table 2 — ITS-SCU-ID value assignment
         */
        modulepar ITS_SCUtype PX_LOCAL_ITS_TYPE := 1; // ITS_SCUtype_host_ 
        
        /**
         * @desc TODO
         */
        modulepar UserPriority PX_USER_PRIORITY := 0; // TODO Check if it is used somewhere
        
        /**
         * @desc TODO
         */
        modulepar Talive PX_TALIVE := 100; // TODO Check whta is the role of Talive
        
garciay's avatar
garciay committed
    } // End of group local
    
    group CRegServer {
        
        modulepar ApplicationID PX_APPLICATION_ID_1 := {
            hostITS_scuId := 1,
            seqNumber := 1
        }
        
//        modulepar GCsched PX_GSCHED_1_0 := {
//            medium := 255, // FIXME TTwb does not generate MedType.ethernet label
//            directivity := {
//                mode := 0, // FIXME TTwb does not generate DirMode.fixed label
//                dirPredef := 0,
//                dirVar := omit
//            },
//            gcInterval := 1
//        }
//        
//        modulepar GCsched PX_GSCHED_1_1 := {
//            medium := 255, // FIXME TTwb does not generate MedType.ethernet label
//            directivity := {
//                mode := 0, // FIXME TTwb does not generate DirMode.fixed label
//                dirPredef := 1,
//                dirVar := omit
//            },
//            gcInterval := 1
//        }
//        
//        modulepar ServiceDataReg PX_SERVICE_DATA_REG_1 := {
//            nonipData := {
//                serviceID := {
//                    content := 1
//                },
//                timeout_ := 100,
//                serviceData := omit,
//                providerPort := omit
//            }
//        }
        
    } // End of group CRegServer
    
} // End of module LibItsFsap_Pixits