Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

JTAGControl Class Reference

Low level JTAG control interface. More...

#include <jtag.h>

Inheritance diagram for JTAGControl:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual bool init (int argc, char **argv)=0
 Initialize the link with the connection device. More...

virtual void ireg (unsigned char *data)=0
 Read and write the jtag instruction register. More...

virtual void dreg (unsigned char *data, unsigned char length, bool writeOnly=false)=0
 Read and write the jtag data register. More...

virtual void jtagReset (void)=0
 Put the JTAG in run test/idle mode. More...

virtual void cpuReset (bool state)=0
 Assert or deassert the cpu reset line. More...

virtual void trst (bool state)=0
 Assert or deassert the TRST (JTAG Reset). More...

virtual void idle (unsigned int nbTCK)=0
 Idle for some TCKs in the run test/idle state. More...

virtual void flushQueue (void)=0
 FLush the write only jtag command queue.

virtual const char * getName (void) const=0
 Return the name of the Jtag Control (like usb, pp).


Detailed Description

Low level JTAG control interface.

Gives access to JTAG instruction register (ireg) and data register (dreg). With this interface it is possible to have multiple JTAG physical implementations.

Definition at line 39 of file jtag.h.


Member Function Documentation

virtual void JTAGControl::cpuReset bool    state [pure virtual]
 

Assert or deassert the cpu reset line.

Parameters:
state  logical state of the CPU Reset line
Returns:
nothing.

Implemented in EzUSBJTAG, and PPJTAG.

Referenced by JTAGpxa250::getReadyForUpload(), and JTAGpxa250::reboot().

virtual void JTAGControl::dreg unsigned char *    data,
unsigned char    length,
bool    writeOnly = false
[pure virtual]
 

Read and write the jtag data register.

Parameters:
data  a pointer to a buffer which will be exchanged with the JTAG data register.
length  number of bits to read/write.
writeOnly  only write, do not read back
Returns:
nothing.

Implemented in EzUSBJTAG, and PPJTAG.

Referenced by JTAGpxa250::boot(), JTAGpxa250::check(), JTAGpxa250::extBreak(), JTAGpxa250::fastWriteRX(), JTAGpxa250::getReadyForUpload(), JTAGpxa250::invalidateMainICLine(), JTAGpxa250::invalidateMiniIC(), JTAGpxa250::loadICLine(), and JTAGpxa250::readTX().

virtual void JTAGControl::idle unsigned int    nbTCK [pure virtual]
 

Idle for some TCKs in the run test/idle state.

Parameters:
nbTCK  number of clock cycle (16 bit width integer).
Returns:
nothing.

Implemented in EzUSBJTAG, and PPJTAG.

Referenced by JTAGpxa250::boot(), and JTAGpxa250::getReadyForUpload().

virtual bool JTAGControl::init int    argc,
char **    argv
[pure virtual]
 

Initialize the link with the connection device.

Parameters:
argc  number of command line argument
argv  array of char* that contains the arguments
Returns:
true on success, false on error.

Implemented in EzUSBJTAG, and PPJTAG.

virtual void JTAGControl::ireg unsigned char *    data [pure virtual]
 

Read and write the jtag instruction register.

Parameters:
data  a pointer to a buffer which will be exchanged with the JTAG instruction register. It always contains only 5 bit so it's one byte wide.
Returns:
nothing.

Implemented in EzUSBJTAG, and PPJTAG.

virtual void JTAGControl::jtagReset void    [pure virtual]
 

Put the JTAG in run test/idle mode.

Returns:
nothing.

Implemented in EzUSBJTAG, and PPJTAG.

Referenced by JTAGpxa250::check().

virtual void JTAGControl::trst bool    state [pure virtual]
 

Assert or deassert the TRST (JTAG Reset).

Parameters:
state  logical state of the TRST line
Returns:
nothing.

Implemented in EzUSBJTAG, and PPJTAG.

Referenced by JTAGpxa250::check(), and JTAGpxa250::getReadyForUpload().


The documentation for this class was generated from the following file:
Generated on Fri May 16 13:01:50 2003 for Jelie by doxygen1.2.15