Functions | |
int | fwTell1_chkCCPC (string Tell1Name, string &CCPC, dyn_int &Version) |
int | fwTell1_chkCFG (string CCPC) |
int | fwTell1_chkGBE (string Tell1Name) |
int | fwTell1_chkTTC (string Tell1Name) |
int | fwTell1_chkORx (string Tell1Name) |
int | fwTell1_chkARx (string Tell1Name) |
int | fwTell1_chkProcessing (string Tell1Name) |
int | fwTell1_chkFlow (string Tell1Name) |
int | fwTell1_chkMemory (string Tell1Name) |
int | fwTell1_chkCFG_dist (string Tell1Name) |
int fwTell1_chkARx | ( | string | Tell1Name | ) |
Checks if ARx is operational - e.g. the DACs are connected and are accessible via ECS.
[in] | Tell1Name | The name of the hardware (Tell1 board). |
(...) if(fwTell1_chkARx("myTell1") > 0) DebugTN("WARNING: Some DACs may not be plugged!"); (...)
int fwTell1_chkCCPC | ( | string | Tell1Name, | |
string & | CCPC, | |||
dyn_int & | Version | |||
) |
Checks if the CCPC is running by checking the invalid bit of the 'common.operationStatus' service.
[in] | string | Tell1Name the name of the hardware (Tell1 board). |
[out] | string | CCPC name of the CCPC found for Tell1 board. |
[out] | dyn_string | Version the version of the server running - first element: version, second element: release, third element: package. |
(...) string CCPC; dyn_int Version; if(fwTell1_chkCCPC("myTell1", CCPC, Version) == 0) DebugN("Server found!"); DebugN("CCPC: " + CCPC); DebugN("Version: " + Version); (...)
int fwTell1_chkCFG | ( | string | CCPC | ) |
Checks if the .cfg file was written propperly by evaluating a part of a certain register. The function is not supported for distributed systems.
[in] | CCPC | name of the credit card PC. |
(...) string ccpc = "pctell07"; if(fwTell1_chkCFG(ccpc)) DebugTN("FPGAs are not configured propperly!"); (...)
int fwTell1_chkCFG_dist | ( | string | Tell1Name | ) |
Checks if the .cfg file was written propperly by evaluating a part of a certain register. This function is supported for distributed systems.
[in] | Tell1Name | name of the hardware (datapoint of Tell1 board). |
(...) string ccpc = "myTell1"; if(fwTell1_chkCFG_dist(Tell1Name)) DebugTN("FPGAs are not configured propperly!"); (...)
int fwTell1_chkFlow | ( | string | Tell1Name | ) |
Checks if data flow on Tell1 board is ok - e.g. whether throttles are arriving or not. The throttle counter is read twice with a pause of 100ms in between. The two values are checked whether they are equal or not.
[in] | Tell1Name | The name of the hardware (Tell1 board). |
(...) if(fwTell1_chkFlow("myTell1") > 0) DebugTN("WARNING: Throttles arriving!"); (...)
int fwTell1_chkGBE | ( | string | Tell1Name | ) |
Checks if GBE is operational - it checks if ports are enabled and not plugged, which would lead to a data loss. And it checks if all ports are disabled.
[in] | Tell1Name | The name of the hardware (Tell1 board). |
(...) if(fwTell1_chkGBE("myTell1") == 16) DebugTN("WARNING: All ports are disabled on SyncLink!"); (...)
int fwTell1_chkMemory | ( | string | Tell1Name | ) |
Checks if memory on Tell1 board is ok - memory overflow occurs if the number of used bits exceeds a certain limit
[in] | string | Tell1Name The name of the hardware (Tell1 board). |
(...) if(fwTell1_chkMemory("myTell1") > 0) DebugTN("WARNING: Memory Overflow!"); (...)
int fwTell1_chkORx | ( | string | Tell1Name | ) |
Checks if ORx is operational - e.g. link is enabled and not in state error.
[in] | Tell1Name | The name of the hardware (Tell1 board). |
(...) if(fwTell1_chkMemory("myTell1") > 0) DebugTN("WARNING: Memory Overflow!"); (...)
int fwTell1_chkProcessing | ( | string | Tell1Name | ) |
Checks if processing on Tell1 board is ok - the counter registers are frozen and compared.
[in] | Tell1Name | The name of the hardware (Tell1 board). |
(...) if(fwTell1_chkProcessing("myTell1") == 1) DebugTN("WARNING: Counter mismatch on FPGAs - processing might be corrupted! Please check Proc. Mon. panel."); (...)
int fwTell1_chkTTC | ( | string | Tell1Name | ) |
Checks if TTC is operational (fibre is plugged). If fibre is unplugged the I2C interface is pertubated. This function is reading 3-times from the status register. In addition the last two bits from the status register are checked.
[in] | Tell1Name | The name of the hardware (Tell1 board). |
(...) if(fwTell1_chkTTC("myTell1")) DebugTN("WARNING: Fibre might not be plugged on TTC!" (...)