Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TTCN-3 Libraries
LibIts
Commits
927b844e
Commit
927b844e
authored
Jun 07, 2017
by
filatov
Browse files
PERization of CAM/DENM
parent
10fbceff
Changes
7
Hide whitespace changes
Inline
Side-by-side
ttcn/CAM/LibItsCam_EncdecDeclarations.ttcn
View file @
927b844e
module
LibItsCam_EncdecDeclarations
{
module
LibItsCam_EncdecDeclarations
{
// LibIts
// LibIts
import
from
ITS_Container
language
"ASN.1:1997"
all
;
import
from
CAM_PDU_Descriptions
language
"ASN.1:1997"
all
;
import
from
CAM_PDU_Descriptions
language
"ASN.1:1997"
all
;
import
from
DENM_PDU_Descriptions
language
"ASN.1:1997"
all
;
// LibItsCam
// LibItsCam
import
from
LibItsCam_TestSystem
all
;
import
from
LibItsCam_TestSystem
all
;
...
@@ -11,11 +9,19 @@ module LibItsCam_EncdecDeclarations {
...
@@ -11,11 +9,19 @@ module LibItsCam_EncdecDeclarations {
external
function
fx_enc_CamReq
(
CamReq
p
)
return
bitstring
external
function
fx_enc_CamReq
(
CamReq
p
)
return
bitstring
with
{
extension
"prototype(convert) encode(LibIts_Interface)"
}
with
{
extension
"prototype(convert) encode(LibIts_Interface)"
}
external
function
fx_enc_CAM
(
CAM
p
)
return
bitstring
with
{
extension
"prototype(convert) encode(PER)"
}
//LibItsCam_asn1
/* TODO RGy function not implemented! (decvalue() not used by test suite @29-06-2016) */
external
function
fx_dec_CamReq
(
inout
bitstring
b
,
out
CamReq
p
)
return
integer
external
function
fx_dec_CamReq
(
inout
bitstring
b
,
out
CamReq
p
)
return
integer
with
{
extension
"prototype(sliding) decode(LibIts_Interface)"
}
with
{
extension
"prototype(sliding) decode(LibIts_Interface)"
}
external
function
fx_dec_CamInd
(
inout
bitstring
b
,
out
CamInd
p
)
return
integer
with
{
extension
"prototype(sliding) decode(LibIts_Interface)"
}
external
function
fx_enc_CAM
(
CAM
p
)
return
bitstring
with
{
extension
"prototype(convert) encode(PER)"
}
external
function
fx_dec_CAM
(
inout
bitstring
b
,
out
CAM
p
)
return
integer
with
{
extension
"prototype(sliding) decode(PER)"
}
/*
external function fx_enc_CAM (CAM p) return octetstring
with {extension "prototype(convert) encode(BER:BER_ENCODE_CER)"}
*/
}
// End of module LibItsCam_EncdecDeclarations
}
// End of module LibItsCam_EncdecDeclarations
ttcn/CAM/LibItsCam_Functions.ttcn
View file @
927b844e
...
@@ -18,8 +18,8 @@ module LibItsCam_Functions {
...
@@ -18,8 +18,8 @@ module LibItsCam_Functions {
// LibIts
// LibIts
import
from
ITS_Container
language
"ASN.1:1997"
all
;
import
from
ITS_Container
language
"ASN.1:1997"
all
;
import
from
CAM_PDU_Descriptions
language
"ASN.1:1997"
all
;
//
import from CAM_PDU_Descriptions language "ASN.1:1997" all;
import
from
DENM_PDU_Descriptions
language
"ASN.1:1997"
all
;
//
import from DENM_PDU_Descriptions language "ASN.1:1997" all;
// LibItsCommon
// LibItsCommon
import
from
LibItsCommon_Pixits
all
;
import
from
LibItsCommon_Pixits
all
;
...
@@ -32,8 +32,8 @@ module LibItsCam_Functions {
...
@@ -32,8 +32,8 @@ module LibItsCam_Functions {
import
from
LibItsCam_Templates
all
;
import
from
LibItsCam_Templates
all
;
import
from
LibItsCam_TypesAndValues
all
;
import
from
LibItsCam_TypesAndValues
all
;
import
from
LibItsCam_Pics
all
;
import
from
LibItsCam_Pics
all
;
import
from
LibItsCam_Pixits
all
;
//
import from LibItsCam_Pixits all;
import
from
LibItsCam_EncdecDeclarations
all
;
//
import from LibItsCam_EncdecDeclarations all;
group
utFuntions
{
group
utFuntions
{
...
...
ttcn/CAM/LibItsCam_Templates.ttcn
View file @
927b844e
...
@@ -18,7 +18,7 @@ module LibItsCam_Templates {
...
@@ -18,7 +18,7 @@ module LibItsCam_Templates {
// LibIts
// LibIts
import
from
ITS_Container
language
"ASN.1:1997"
all
;
import
from
ITS_Container
language
"ASN.1:1997"
all
;
import
from
CAM_PDU_Descriptions
language
"ASN.1:1997"
all
;
import
from
CAM_PDU_Descriptions
language
"ASN.1:1997"
all
;
import
from
DENM_PDU_Descriptions
language
"ASN.1:1997"
all
;
//
import from DENM_PDU_Descriptions language "ASN.1:1997" all;
// LibItsCommon
// LibItsCommon
import
from
LibItsCommon_Functions
all
;
import
from
LibItsCommon_Functions
all
;
...
...
ttcn/CAM/LibItsCam_TestSystem.ttcn
View file @
927b844e
...
@@ -12,14 +12,14 @@
...
@@ -12,14 +12,14 @@
module
LibItsCam_TestSystem
{
module
LibItsCam_TestSystem
{
// LibCommon
// LibCommon
import
from
LibCommon_Time
{
modulepar
all
};
//
import from LibCommon_Time {modulepar all};
import
from
LibCommon_Sync
all
;
//
import from LibCommon_Sync all;
import
from
LibCommon_BasicTypesAndValues
all
;
import
from
LibCommon_BasicTypesAndValues
all
;
import
from
LibCommon_DataStrings
all
;
import
from
LibCommon_DataStrings
all
;
// LibIts
// LibIts
import
from
CAM_PDU_Descriptions
language
"ASN.1:1997"
all
;
import
from
CAM_PDU_Descriptions
language
"ASN.1:1997"
all
;
import
from
DENM_PDU_Descriptions
language
"ASN.1:1997"
all
;
//
import from DENM_PDU_Descriptions language "ASN.1:1997" all;
// LibItsCommon
// LibItsCommon
import
from
LibItsCommon_TestSystem
all
;
import
from
LibItsCommon_TestSystem
all
;
...
@@ -141,8 +141,9 @@ module LibItsCam_TestSystem {
...
@@ -141,8 +141,9 @@ module LibItsCam_TestSystem {
UInt32
its_aid
optional
UInt32
its_aid
optional
}
}
with
{
with
{
variant
""
//
variant ""
encode
(
msgIn
)
"PER"
//LibItsCam_asn1
encode
(
msgIn
)
"PER"
//LibItsCam_asn1
/*
encode (gnNextHeader) "RAW"
encode (gnNextHeader) "RAW"
encode (gnHeaderType) "RAW"
encode (gnHeaderType) "RAW"
encode (gnHeaderSubtype) "RAW"
encode (gnHeaderSubtype) "RAW"
...
@@ -152,6 +153,7 @@ module LibItsCam_TestSystem {
...
@@ -152,6 +153,7 @@ module LibItsCam_TestSystem {
encode (btpInfo) "RAW"
encode (btpInfo) "RAW"
encode (ssp) "RAW"
encode (ssp) "RAW"
encode (its_aid) "RAW"
encode (its_aid) "RAW"
*/
}
}
/**
/**
...
@@ -161,7 +163,7 @@ module LibItsCam_TestSystem {
...
@@ -161,7 +163,7 @@ module LibItsCam_TestSystem {
CAM
msgOut
CAM
msgOut
}
}
with
{
with
{
variant
""
//
variant ""
encode
(
msgOut
)
"PER"
//LibItsCam_asn1
encode
(
msgOut
)
"PER"
//LibItsCam_asn1
}
}
...
...
ttcn/CAM/LibItsCam_TypesAndValues.ttcn
View file @
927b844e
...
@@ -13,12 +13,12 @@ module LibItsCam_TypesAndValues {
...
@@ -13,12 +13,12 @@ module LibItsCam_TypesAndValues {
// LibCommon
// LibCommon
import
from
LibCommon_BasicTypesAndValues
all
;
import
from
LibCommon_BasicTypesAndValues
all
;
import
from
LibCommon_DataStrings
all
;
//
import from LibCommon_DataStrings all;
// LibIts
// LibIts
import
from
ITS_Container
language
"ASN.1:1997"
all
;
import
from
ITS_Container
language
"ASN.1:1997"
all
;
import
from
CAM_PDU_Descriptions
language
"ASN.1:1997"
all
;
import
from
CAM_PDU_Descriptions
language
"ASN.1:1997"
all
;
import
from
DENM_PDU_Descriptions
language
"ASN.1:1997"
all
;
//
import from DENM_PDU_Descriptions language "ASN.1:1997" all;
group
camValues
{
group
camValues
{
...
...
ttcn/DENM/LibItsDenm_EncdecDeclarations.ttcn
View file @
927b844e
...
@@ -6,11 +6,16 @@ module LibItsDenm_EncdecDeclarations {
...
@@ -6,11 +6,16 @@ module LibItsDenm_EncdecDeclarations {
external
function
fx_enc_DenmReq
(
DenmReq
p
)
return
bitstring
external
function
fx_enc_DenmReq
(
DenmReq
p
)
return
bitstring
with
{
extension
"prototype(convert) encode(LibIts_Interface)"
}
with
{
extension
"prototype(convert) encode(LibIts_Interface)"
}
external
function
fx_enc_DENM
(
DENM
p
)
return
octetstring
external
function
fx_dec_DenmInd
(
inout
bitstring
b
,
out
DenmInd
p
)
return
integer
with
{
extension
"prototype(sliding) decode(LibIts_Interface)"
}
external
function
fx_enc_DENM
(
DENM
p
)
return
bitstring
with
{
extension
"prototype(convert) encode(BER:BER_ENCODE_CER)"
}
with
{
extension
"prototype(convert) encode(BER:BER_ENCODE_CER)"
}
// with {extension "prototype(convert) encode(PER)"}
/* not needed yet, no decvalue is used in TTCN-3 code
external
function
fx_dec_DENM
(
inout
bitstring
b
,
out
DENM
p
)
return
integer
external function fx_dec_DenmReq (inout bitstring b, out DenmReq p) return integer
with
{
extension
"prototype(sliding) decode(BER:BER_ENCODE_CER)"
}
with {extension "prototype(sliding) decode(LibIts_Interface)"}
// with {extension "prototype(sliding) encode(PER)"}
*/
}
// End of module LibItsDenm_EncdecDeclarations
}
// End of module LibItsDenm_EncdecDeclarations
ttcn/DENM/LibItsDenm_TestSystem.ttcn
View file @
927b844e
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
module
LibItsDenm_TestSystem
{
module
LibItsDenm_TestSystem
{
// LibCommon
// LibCommon
import
from
LibCommon_Time
{
modulepar
all
};
//
import from LibCommon_Time {modulepar all};
import
from
LibCommon_Sync
all
;
//
import from LibCommon_Sync all;
import
from
LibCommon_BasicTypesAndValues
all
;
import
from
LibCommon_BasicTypesAndValues
all
;
import
from
LibCommon_DataStrings
all
;
import
from
LibCommon_DataStrings
all
;
...
@@ -147,7 +147,7 @@ module LibItsDenm_TestSystem {
...
@@ -147,7 +147,7 @@ module LibItsDenm_TestSystem {
UInt32
its_aid
optional
UInt32
its_aid
optional
}
}
with
{
with
{
encode
(
msgIn
)
"
LibItsDenm_asn1
"
encode
(
msgIn
)
"
PER
"
}
}
/**
/**
...
@@ -159,7 +159,7 @@ module LibItsDenm_TestSystem {
...
@@ -159,7 +159,7 @@ module LibItsDenm_TestSystem {
DENM
msgOut
DENM
msgOut
}
}
with
{
with
{
encode
(
msgOut
)
"
LibItsDenm_asn1
"
encode
(
msgOut
)
"
PER
"
}
}
}
// End of group fa1Primitives
}
// End of group fa1Primitives
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment