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
ede06d09
Commit
ede06d09
authored
Dec 10, 2012
by
tepelmann
Browse files
Added TC_MTS_CCH_01.
parent
9eda061b
Changes
3
Hide whitespace changes
Inline
Side-by-side
ttcn/DCC/LibItsDcc_Functions.ttcn
View file @
ede06d09
...
...
@@ -697,6 +697,28 @@ module LibItsDcc_Functions {
return
p_tOff
*
int2float
(
PIXIT_NUMBER_OF_FRAMES
+
1
);
}
/**
* @desc Retrieves the string representation of a ChannelState.
* @param The channel state enumerated.
* @return The string representation.
*/
function
f_enum2str
(
ChannelState
p_state
)
return
charstring
{
select
(
p_state
)
{
case
(
relaxed
)
{
return
"relaxed"
;
}
case
(
active
)
{
return
"active"
;
}
case
(
restrictive
)
{
return
"restrictive"
;
}
case
else
{
return
"unknown channel state"
;
}
}
}
}
group
externalFunction
{
...
...
ttcn/DCC/LibItsDcc_Pixits.ttcn
View file @
ede06d09
...
...
@@ -7,7 +7,7 @@
*/
module
LibItsDcc_Pixits
{
import
from
LibItsDcc_TypesAndValues
{
type
ProfileTimeAspect
s
;}
import
from
LibItsDcc_TypesAndValues
{
group
moduleParTable
s
;}
group
acceptableTransmissionPower
{
/**
...
...
@@ -282,6 +282,32 @@ module LibItsDcc_Pixits {
{
2
,
4.0
,
0.250
},
{
3
,
1.0
,
1.000
}
}
/**
* @desc Give the content of Table 10.
* @see ETSI TS 102 917-2 Table 10
*/
modulepar
ProfileChannelTimeAspects
PIXIT_TABLE_10_TC_MTS_CCH_01
:=
{
{
1
,
{
{
active
,
5.0
,
0.190
,
{
relaxed
,
active
,
restrictive
}
},
{
restrictive
,
4.0
,
0.250
,
{
relaxed
,
active
,
restrictive
}
}
}
},
{
2
,
{
{
active
,
5.0
,
0.190
,
{
active
,
restrictive
}
},
{
restrictive
,
4.0
,
0.250
,
{
active
,
restrictive
}
}
}
},
{
3
,
{
{
active
,
5.0
,
0.190
,
{
restrictive
}
},
{
restrictive
,
4.0
,
0.250
,
{
restrictive
}
}
}
}
}
}
}
// End of module LibItsDcc_Pixits
\ No newline at end of file
ttcn/DCC/LibItsDcc_TypesAndValues.ttcn
View file @
ede06d09
...
...
@@ -101,12 +101,26 @@ module LibItsDcc_TypesAndValues {
ChannelState
cchState
,
float
messageInterval
,
//in Hz
float
tOff
,
//in ms
record
of
ChannelState
sch1State
record
of
ChannelState
sch1States
}
type
record
of
ChannelTimeAspect
ChannelTimeAspects
;
type
record
SingleChannelTimeAspect
{
ChannelState
cchState
,
float
messageInterval
,
//in Hz
float
tOff
,
//in ms
ChannelState
sch1State
}
type
record
ProfileChannelTimeAspect
{
ProfileType
profile
,
ChannelTimeAspect
aspects
ChannelTimeAspects
aspects
}
type
record
ProfileSingleChannelTimeAspect
{
ProfileType
profile
,
SingleChannelTimeAspect
aspects
}
type
record
of
ProfileChannelTimeAspect
ProfileChannelTimeAspects
;
...
...
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