JTAG Functions


Functions

int fwCcpc_JTAGReset (string pCCPC, int pChain)
int fwCcpc_JTAGIdle (string pCCPC, int pChain)
int fwCcpc_JTAGIRScan (string pCCPC, int pChain, int pSize, dyn_char pDataIn, dyn_char &pDataOut)
int fwCcpc_JTAGDRScan (string pCCPC, int pChain, int pSize, dyn_char pDataIn, dyn_char &pDataOut)
int fwCcpc_JTAGResetTAP (string pCCPC, int pChain)
bool fwCcpc_JTAGChainScan (string pCCPC, int pChain, dyn_int &pDeviceAddressList)

Detailed Description

List of functions to operate with JTAG (Joint Test Action Group). Three JTAG chains are provided (1,2 and 3).

Function Documentation

bool fwCcpc_JTAGChainScan ( string  pCCPC,
int  pChain,
dyn_int &  pDeviceAddressList 
)

This function performs a JTAG scan operation on the specified CCPC.

Parameters:
[in] pCCPC name of the CCPC.
[in] pChain chain number from '1' to '3'.
[out] pDeviceAddressList list containing the addresses of the devices.
Returns:
true no error found.

false error found.

Example:

  (...)
  dyn_int myList;
  int     i;

  if (fwCcpc_JTAGChainScan("pclbcecs03", 1, myList) == 0)   // scans JTAG chain no.1 for connected hardware
     for(i = 1; i <= dynlen(myList); i++)
        DebugTN("Device Nr. " + (string) i + " has address " + fwCcpc_convertDecToHex(myList[i]));
  else
     DebugTN("Error found!");
  (...)



int fwCcpc_JTAGDRScan ( string  pCCPC,
int  pChain,
int  pSize,
dyn_char  pDataIn,
dyn_char &  pDataOut 
)

Perform a DR SCAN operation on the specified JTAG chain.

Parameters:
[in] pCCPC name of the CCPC.
[in] pChain chain number from '1' to '3'.
[in] pSize size (in bits) of the data to be shifted in. Note: the first bit to be shifted in will be the rightmost bit of the data.
[in] pDataIn data to be shifted in.
[out] pDataOut data that has been shifted out.
Returns:
= 0 no error found.

> 0 error found (related with CCPC Server).

= -1 error found (related with PVSS).

Example:

  (...)
  dyn_char myData;

  if (fwCcpc_JTAGDRScan("pclbcecs03", 1, 24, fwCcpc_convertHexToByte("feedbabe"), myData) == 0)   // perform a IR SCAN operation
     DebugTN(fwCcpc_convertHexToByte(myData));
  else
     DebugTN("Error found!");
  (...)



int fwCcpc_JTAGIdle ( string  pCCPC,
int  pChain 
)

IDLE operation: A state movement to ENDST_TLRST is performed.

Parameters:
[in] pCCPC name of the CCPC.
[in] pChain number of chain from '1' to '3'.
Returns:
= 0 no error found.

> 0 error found (related with CCPC Server).

= -1 error found (related with PVSS).

Example:

  (...)
  if (fwCcpc_JTAGIdle("pclbcecs03",1) == 0)   
     (...)
  else
     DebugTN("Error found!");
  (...)



int fwCcpc_JTAGIRScan ( string  pCCPC,
int  pChain,
int  pSize,
dyn_char  pDataIn,
dyn_char &  pDataOut 
)

Perform a IR SCAN operation on the specified JTAG chain.

Parameters:
[in] pCCPC name of the CCPC.
[in] pChain chain number from '1' to '3'.
[in] pSize size (in bits) of the data to be shifted in. Note: the first bit to be shifted in will be the rightmost bit of the data.
[in] pDataIn data to be shifted in.
[out] pDataOut data that has been shifted out.
Returns:
= 0 no error found.

> 0 error found (related with CCPC Server).

= -1 error found (related with PVSS).

Example:

  (...)
  dyn_char myData;

  if (fwCcpc_JTAGIRScan("pclbcecs03", 1, 24, fwCcpc_convertHexToByte("feedbabe"), myData) == 0)   // perform a IR SCAN operation
     DebugTN(fwCcpc_convertHexToByte(myData));
  else
     DebugTN("Error found!");
  (...)



int fwCcpc_JTAGReset ( string  pCCPC,
int  pChain 
)

RESET operation: A state movement to ENDST_TLRST is performed.

Parameters:
[in] pCCPC name of the CCPC.
[in] pChain number of chain from '1' to '3'.
Returns:
= 0 no error found.

> 0 error found (related with CCPC Server).

= -1 error found (related with PVSS).

Example:

  (...)
  if (fwCcpc_JTAGReset("pclbcecs03",1) == 0)   // perform a RESET operation
     (...)
  else
     DebugTN("Error found!");
  (...)



int fwCcpc_JTAGResetTAP ( string  pCCPC,
int  pChain 
)

Perform a TAP reset operation.

Parameters:
[in] pCCPC name of the CCPC.
[in] pChain chain number from '1' to '3'.
Returns:
= 0 no error found.

> 0 error found (related with CCPC Server).

= -1 error found (related with PVSS).

Example:

  (...)
  if (fwCcpc_JTAGResetTAP("pclbcecs03", 1) == 0)   
     (...)
  else
     DebugTN("Error found!");
  (...)




Generated on Fri Mar 28 13:15:39 2008 for FwCcpc by  doxygen 1.4.7