Skip to content
Snippets Groups Projects
Commit 0714a202 authored by berge's avatar berge
Browse files

Renamed some functions

parent 3c35b6a8
No related branches found
No related tags found
No related merge requests found
......@@ -13,9 +13,10 @@ module LibItsCam_Functions {
/**
* @desc Create Facility component and map CAM port
* @remark Only used when ItsFa is a PTC
* @param p_camPtc returned Facility component variable
*/
function f_cfCamUp(out ItsFa p_ptcCam) {
function f_ptcCamUp(out ItsFa p_ptcCam) {
// Create Facility component
p_ptcCam := ItsFa.create("CAM Tester");
......@@ -23,13 +24,14 @@ module LibItsCam_Functions {
// map ports
map(p_ptcCam:camPort, system:camPort);
} // end f_cfCamUp
} // end f_ptcCamUp
/**
* @desc Wait for component to finish and unmap CAM ports
* @remark Only used when ItsFa is a PTC
* @param p_camPtc Facility component variable
*/
function f_cfCamDown(in ItsFa p_ptcCam) runs on ItsMtc {
function f_ptcCamDown(in ItsFa p_ptcCam) runs on ItsMtc {
tc_guard.start;
alt {
......@@ -38,12 +40,12 @@ module LibItsCam_Functions {
}
[] tc_guard.timeout {
log("*** f_cfCamDown: ERROR: Timeout while waiting for component ***");
log("*** f_ptcCamDown: ERROR: Timeout while waiting for component ***");
setverdict(inconc);
}
}
unmap(p_ptcCam:camPort);
} // end f_cfCamDown
} // end f_ptcCamDown
} // end LibItsCam_Functions
\ No newline at end of file
......@@ -13,9 +13,10 @@ module LibItsDenm_Functions {
/**
* @desc Create Facility component and connects DENM port
* @remark Only used when ItsFa is a PTC
* @param p_ptcDenm returned Facility component variable
*/
function f_cfDenmUp(out ItsFa p_ptcDenm) {
function f_ptcDenmUp(out ItsFa p_ptcDenm) {
// Create Facility component
p_ptcDenm := ItsFa.create("DENM Tester");
......@@ -23,13 +24,14 @@ module LibItsDenm_Functions {
// map ports
map(p_ptcDenm:denmPort, system:denmPort);
} // end f_cfDenmUp
} // end f_ptcDenmUp
/**
* @desc Wait for component to finish and unmap DENM ports
* @remark Only used when ItsFa is a PTC
* @param p_camPtc Facility component variable
*/
function f_cfDenmDown(in ItsFa p_ptcDenm) runs on ItsMtc {
function f_ptcDenmDown(in ItsFa p_ptcDenm) runs on ItsMtc {
tc_guard.start;
alt {
[] p_ptcDenm.done {
......@@ -37,12 +39,12 @@ module LibItsDenm_Functions {
}
[] tc_guard.timeout {
log("*** f_cfDenmDown: ERROR: Timeout while waiting for component ***");
log("*** f_ptcDenmDown: ERROR: Timeout while waiting for component ***");
setverdict(inconc);
}
}
unmap(p_ptcDenm:denmPort);
} // end f_cfDenmDown
} // end f_ptcDenmDown
} // end LibItsDenm_Functions
\ No newline at end of file
......@@ -13,9 +13,10 @@ module LibItsGeoNetworking_Functions {
/**
* @desc Create Facility component and connects GeoNetworking port
* @remark Only used when ItsFa is a PTC
* @param p_ptcDenm returned Facility component variable
*/
function f_cfGeoNetworkingUp(out ItsNt p_ptcGeoNetworking) {
function f_ptcGeoNetworkingUp(out ItsNt p_ptcGeoNetworking) {
// Create Facility component
p_ptcGeoNetworking := ItsNt.create("GeoNetworking Tester");
......@@ -23,13 +24,14 @@ module LibItsGeoNetworking_Functions {
// map ports
map(p_ptcGeoNetworking:geoNetworkingPort, system:geoNetworkingPort);
} // end f_cfGeoNetworkingUp
} // end f_ptcGeoNetworkingUp
/**
* @desc Wait for component to finish and unmap GeoNetworking ports
* @remark Only used when ItsFa is a PTC
* @param p_camPtc Facility component variable
*/
function f_cfGeoNetworkingDown(in ItsNt p_ptcGeoNetworking) runs on ItsMtc {
function f_ptcGeoNetworkingDown(in ItsNt p_ptcGeoNetworking) runs on ItsMtc {
tc_guard.start;
alt {
[] p_ptcGeoNetworking.done {
......@@ -37,12 +39,12 @@ module LibItsGeoNetworking_Functions {
}
[] tc_guard.timeout {
log("*** f_cfGeoNetworkingDown: ERROR: Timeout while waiting for component ***");
log("*** f_ptcGeoNetworkingDown: ERROR: Timeout while waiting for component ***");
setverdict(inconc);
}
}
unmap(p_ptcGeoNetworking:geoNetworkingPort);
} // end f_cfGeoNetworkingDown
} // end f_ptcGeoNetworkingDown
} // end LibItsGeoNetworking_Functions
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment