Newer
Older
/**
* @author ETSI / STF405
* @version $URL$
* $Id$
* @desc Module containing types and values for Basic Transport Protocol
*
*/
module LibItsBtp_TypesAndValues {
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
40
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
// LibCommon
import from LibCommon_BasicTypesAndValues all;
group btpPdus {
/**
* @desc BTP Packet
*
* @see Draft ETSI TS 102 636-5-1 V0.0.32 (2010-0907) chapter 6
*
* @member header
* @member payload
*/
type record BtpPacket {
BtpHeader header,
BtpPayload payload optional
}
} // end btpPdus
group btpHeaders {
/**
* @desc BTP Header
*
* @see Draft ETSI TS 102 636-5-1 V0.0.32 (2010-0907) chapter 7.1
*
* @member btpAHeader
* @member btpBHeader
*/
type union BtpHeader {
BtpAHeader btpAHeader,
BtpBHeader btpBHeader
}
/**
* @desc BTP-A Header
*
* @see Draft ETSI TS 102 636-5-1 V0.0.32 (2010-0907) chapter 7.2
*
* @member destinationPort
* @member sourcePort
*/
type record BtpAHeader {
BtpPort destinationPort,
BtpPort sourcePort
}
/**
* @desc BTP-B Header
*
* @see Draft ETSI TS 102 636-5-1 V0.0.32 (2010-0907) chapter 7.3
*
* @member destinationPort
* @member destinationPortInfo
*/
type record BtpBHeader {
BtpPort destinationPort,
BtpPortInfo destinationPortInfo
}
type UInt16 BtpPort;
type UInt16 BtpPortInfo;
} // end btpHeaders
group btpPayload {
/**
* @desc TODO change it to concrete union value
*/
type octetstring BtpPayload;
} //end btpPayload