LibItsFntp_TypesAndValues.ttcn3 4.72 KB
Newer Older
1
2
/**
 *  @author     ETSI / STF422_EETS
filatov's avatar
filatov committed
3
4
 *  @version    $URL$
 *              $Id$
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 *  @desc       Types and constants definitions for Fast Networking & Transport layer Protocol (ISO 29281-2)
 */
module LibItsFntp_TypesAndValues {
    
    // LibCommon
    import from LibCommon_BasicTypesAndValues { 
        type UInt16 
    };
    
    // LibIts
    import from CALMllsap language "ASN.1:1997" {
        type
            INsapPrimitivesUp 
    };
    import from CALMfntp language "ASN.1:1997" {
        type 
            FNTPNPDU, 
            NFsapPrimitivesDown, NFsapPrimitivesUp, FNTPintForwarding, 
            PortNumber 
    };
    
    /**
     * @desc FNTP port values
     * @see ISO/CD 29281-2 Table 1 — FNTP endpoints identified by port numbers
     */
    group fntpPortsValues {
        
        /**
         * @desc Groupcast manager, i.e. Service Advertisement Message (SAM) endpoint
         */
        const UInt16 c_portSam := 0;
        
        /**
         * @desc dynamic port
         */
garciay's avatar
garciay committed
40
        const UInt16 c_portDyn := 128; 
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
        
        /**
         * @desc Low limit of reserved range
         */
        const UInt16 c_portReservedLow := 32717;
        /**
         * @desc High limit of reserved range
         */
        const UInt16 c_portReservedHigh := 32763;
        /**
         * @desc Inter ITS-SCU communications specified in ISO 24102-4
         */
        const UInt16 c_portIic := 32764;
        
        /**
         * @desc Shall be used to identify an ITS-SCU with functionality of an ITS-S router. These values shall be used only in the FNTP forwarding header
         */
        const UInt16 c_portRtr := 32765;
        
        /**
         * @desc Shall be used to identify an ITS-SCU with functionality of an ITS-S host. These values shall be used only in the FNTP forwarding header
         */
        const UInt16 c_portHst := 32766;
        
        /**
         * @desc Unknown or 'don't care' port
         */
        const UInt16 c_portNon := 32767;
        
    } // End of group fntpPortsValues
    
    group utPrimitives {
        
        /**
         * @desc Trigger to initialize the IUT.
         */
        type record UtFntpInitialize {
        }
        
        /**
         * @desc Events at the application layer of the IUT.
         */
        type union UtFntpEvent { // FIXME To be removed
            anytype noField
        }
        
        /**
garciay's avatar
garciay committed
88
         * @desc Send a XXX.request primitive to the IUT through a SAP.
89
90
91
92
93
94
         */
        type union UtFntpCommandRequest { 
            NFsapPrimitivesDown nfSapPrimitives
        }
        
        /**
garciay's avatar
garciay committed
95
         * @desc Receive a XXX.confirm primitive from the IUT through a SAP.
96
97
98
99
100
101
         */
        type union UtFntpCommandConfirm { 
            NFsapPrimitivesUp nfSapPrimitives
        }
        
        /**
garciay's avatar
garciay committed
102
         * @desc Receive a XXX.indication command from the IUT through a SAP.
103
104
105
106
107
108
109
110
111
112
113
114
         */
        type union UtFntpCommandIndication { 
            NFsapPrimitivesUp nfSapPrimitives
        }
        
    } // End of group utPrimitives

    group acPrimitives {
        
        /**
         * @desc    TA primitives for FNTP
         * @member acGenerateFntpNPDU       To generate a station-internal FNTP NDPU
115
         * @member acGenerateSamMessagePdu  To generate a SAM message
116
117
118
         * @member acGenerateCtxMessagePDU  To generate a CTX message
         */
        type union AcFntpPrimitive { 
119
            AcGenerateFntpNpdu acGenerateFntpNpdu,
reinaortega's avatar
reinaortega committed
120
            AcGenerateSamMessagePdu acGenerateSamMessagePdu,
121
            AcGenerateCtxMessagePdu acGenerateCtxMessagePdu
122
123
124
125
126
127
128
129
130
131
132
133
134
        }
        
        /**
         * @desc    Primitive for receiveing response from TA
         */
        type union AcFntpResponse { // FIXME To be removed
            anytype noField
        }
        
        /**
         * @desc    Primitive for TA to generate a station-internal FNTP NDPU
         * @member  fntpNPDU Number of hops. This parameter shall be set to zero for single hop
         */
135
        type record AcGenerateFntpNpdu {
136
137
138
139
140
141
142
            INsapPrimitivesUp fntpNPDU
        }
        
        /**
         * @desc    Generate a SAM message
         * @member  samPDU  The SAM pdu
         */
reinaortega's avatar
reinaortega committed
143
        type record AcGenerateSamMessagePdu {
144
            INsapPrimitivesUp samPdu
145
146
147
148
149
150
        }
        
        /**
         * @desc    Generate a CTX message
         * @member  ctxPDU  The CTX pdu
         */
151
152
        type record AcGenerateCtxMessagePdu {
            INsapPrimitivesUp ctxPdu
153
154
155
156
157
158
159
160
        }
        
    } // End of group acPrimitives

}
with {
    encode "LibItsFntp_TypesAndValues"
} //End of module LibItsFntp_TypesAndValues