CCPC Functions


Functions

int fwTell1_EPC16ToFPGA (string pCCPC)
int fwTell1_iniGlueCard (string pCCPC)
int fwTell1_resetTell1 (string pCCPC)
int fwTell1_resetTell1Soft (string pCCPC)
int fwTell1_iniGBE (string pCCPC)
int fwTell1_clearMEP (string pCCPC)
int fwTell1_iniTell1 (string pCCPC)

Detailed Description

The input parameter of these functions will always be the CCPC name (name of the server related to the Tell1 board). These functions will work even when the board's registers are not subsribed yet! Most of these functions (e.g. the initialisations) are linking directly to the tell1lib provided with the C-code command line tools.(hard-coded sequences to avoid timing and sequencing problems)

Function Documentation

int fwTell1_clearMEP ( string  pCCPC  ) 

This function clears the MEP buffer

Parameters:
[in] pCCPC name of the CCPC.
Returns:
int the errorcode of this library: 0 if no error occured -1 ECS error
Example:

  (...) 
  if (fwTell1_clearMEP("pclbcecs03") == 0)  
     (...) 
  else 
     DebugTN("Error found!"); 
  (...) 



int fwTell1_EPC16ToFPGA ( string  pCCPC  ) 

This function loads the FPGA from EPC16 (just for TELL1).

Parameters:
[in] pCCPC name of the CCPC.
Returns:
int the errorcode of this library: 0 if no error occured -1 ECS error
Example:

  (...)
  if (fwTell1_EPC16ToFPGA("pclbcecs03") == 0)   // load the FPGA from EPC16
     (...)
  else
     DebugTN("Error found!");
  (...)



int fwTell1_iniGBE ( string  pCCPC  ) 

This function initializes the Gigabit Ethernet card

Parameters:
[in] pCCPC name of the CCPC.
Returns:
int the errorcode of this library: 0 if no error occured -1 ECS error
Example:

  (...) 
  if (fwTell1_iniGBE("pclbcecs03") == 0)  
     (...) 
  else 
     DebugTN("Error found!"); 
  (...) 



int fwTell1_iniGlueCard ( string  pCCPC  ) 

This function initializes the glue-card

Parameters:
[in] pCCPC name of the CCPC.
Returns:
int the errorcode of this library: 0 if no error occured -1 ECS error
Example:

  (...) 
  if (fwTell1_iniGlueCard("pclbcecs03") == 0)  
     (...) 
  else 
     DebugTN("Error found!"); 
  (...) 



int fwTell1_iniTell1 ( string  pCCPC  ) 

This function initializes the complete Tell1 board. It calls all the necessary hardcoded sequences directly on the server. For propper configuration it is necessary to call this function before the recipes are applied.

Parameters:
[in] pCCPC name of the CCPC.
Returns:
int the errorcode of this library: 0 if no error occured -1 ECS error
Example:

  (...) 
  if (fwTell1_iniTell1("pclbcecs03") == 0)  
     (...) 
  else 
     DebugTN("Error found!"); 
  (...) 



int fwTell1_resetTell1 ( string  pCCPC  ) 

This function resets the Tell1 board by pulling some GPIO lines

Parameters:
[in] pCCPC name of the CCPC.
Returns:
int the errorcode of this library: 0 if no error occured -1 ECS error
Example:

  (...) 
  if (fwTell1_resetTell1("pclbcecs03") == 0)  
     (...) 
  else 
     DebugTN("Error found!"); 
  (...) 



int fwTell1_resetTell1Soft ( string  pCCPC  ) 

This function sets a bit in SL_RESET_REG to reset the TELL1 board

Parameters:
[in] pCCPC name of the CCPC.
Returns:
int the errorcode of this library: 0 if no error occured -1 ECS error
Example:

  (...) 
  if (fwTell1_resetTell1Soft("pclbcecs03") == 0)  
     (...) 
  else 
     DebugTN("Error found!"); 
  (...) 




Generated on Thu Dec 13 01:29:59 2007 for FwTell1 by  doxygen 1.5.1-p1