JTAG Functions


Functions

int fwSpecs_JTAGReset (string pSPECS, int pMasterID, int pSlaveAddress, int pBus)
int fwSpecs_JTAGIdle (string pSPECS, int pMasterID, int pSlaveAddress, int pBus)
int fwSpecs_JTAGIRScan (string pSPECS, int pMasterID, int pSlaveAddress, int pBus, int pSize, dyn_char pDataIn, dyn_char &pDataOut)
int fwSpecs_JTAGDRScan (string pSPECS, int pMasterID, int pSlaveAddress, int pBus, int pSize, dyn_char pDataIn, dyn_char &pDataOut)

Detailed Description

List of functions to operate with JTAG (Joint Test Action Group).

Function Documentation

int fwSpecs_JTAGDRScan ( string  pSPECS,
int  pMasterID,
int  pSlaveAddress,
int  pBus,
int  pSize,
dyn_char  pDataIn,
dyn_char &  pDataOut 
)

Perform a DR SCAN operation in the specified JTAG.

Parameters:
[in] pSPECS name of the SPECS.
[in] pMasterID master ID.
[in] pSlaveAddress slave address.
[in] pBus bus number.
[in] pSize size (in bits) of the data to be shifted in.
[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 SpecsUser; see error codes).

= -1 error found (related with PVSS).

Example:

  (...)
  dyn_char myData;

  if (fwSpecs_JTAGDRScan("pclbcecs03", 1, 1, 0, 24, makeDynChar(65, 66, 67), myData) == 0)   // perform a DR SCAN operation
     DebugTN(myData);
  else
     DebugTN("Error found!");
  (...)



int fwSpecs_JTAGIdle ( string  pSPECS,
int  pMasterID,
int  pSlaveAddress,
int  pBus 
)

Perform a IDLE operation in the specified JTAG.

Parameters:
[in] pSPECS name of the SPECS.
[in] pMasterID master ID.
[in] pSlaveAddress slave address.
[in] pBus bus number.
Returns:
= 0 no error found.

> 0 error found (related with SpecsUser; see error codes).

= -1 error found (related with PVSS).

Example:

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



int fwSpecs_JTAGIRScan ( string  pSPECS,
int  pMasterID,
int  pSlaveAddress,
int  pBus,
int  pSize,
dyn_char  pDataIn,
dyn_char &  pDataOut 
)

Perform a IR SCAN operation in the specified JTAG.

Parameters:
[in] pSPECS name of the SPECS.
[in] pMasterID master ID.
[in] pSlaveAddress slave address.
[in] pBus bus number.
[in] pSize size (in bits) of the data to be shifted in.
[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 SpecsUser; see error codes).

= -1 error found (related with PVSS).

Example:

  (...)
  dyn_char myData;

  if (fwSpecs_JTAGIRScan("pclbcecs03", 1, 1, 0, 24, makeDynChar(65, 66, 67), myData) == 0)   // perform a IR SCAN operation
     DebugTN(myData);
  else
     DebugTN("Error found!");
  (...)



int fwSpecs_JTAGReset ( string  pSPECS,
int  pMasterID,
int  pSlaveAddress,
int  pBus 
)

Perform a RESET operation in the specified JTAG.

Parameters:
[in] pSPECS name of the SPECS.
[in] pMasterID master ID.
[in] pSlaveAddress slave address.
[in] pBus bus number.
Returns:
= 0 no error found.

> 0 error found (related with SpecsUser; see error codes).

= -1 error found (related with PVSS).

Example:

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




Generated on Fri Mar 28 13:36:50 2008 for FwSpecs by  doxygen 1.4.7