Newer
Older
* @desc Module containing functions for DENM
*
*/
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
// LibIts
import from LibIts_TestSystem all;
import from LibIts_Interface all;
/**
* @desc Create Facility component and connects DENM port
* @param p_ptcDenm returned Facility component variable
*/
function f_cfDenmUp(out PtcFa p_ptcDenm) {
// Create Facility component
p_ptcDenm := PtcFa.create("DENM Tester");
// map ports
map(p_ptcDenm:denmPort, system:denmPort);
}
/**
* @desc Wait for component to finish and unmap DENM ports
* @param p_camPtc Facility component variable
*/
function f_cfDenmDown(in PtcFa p_ptcDenm) runs on ItsMtc {
tc_guard.start;
alt {
[] p_ptcDenm.done {
tc_guard.stop;
}
[] tc_guard.timeout {
log("*** f_cfCamDown: ERROR: Timeout while waiting for component ***");
setverdict(inconc);
}
}
unmap(p_ptcDenm:camPort);