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

PPJTAG Class Reference

Parrallel port JTAG control class. More...

#include <pp_jtag.h>

Inheritance diagram for PPJTAG:

Inheritance graph
[legend]
Collaboration diagram for PPJTAG:

Collaboration graph
[legend]
List of all members.

Public Methods

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

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

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

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

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

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

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

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

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


Private Attributes

unsigned short port
 parrallel port number.


Detailed Description

Parrallel port JTAG control class.

Definition at line 34 of file pp_jtag.h.


Member Function Documentation

void PPJTAG::cpuReset bool    state [virtual]
 

Assert or deassert the cpu reset line.

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

Implements JTAGControl.

Definition at line 257 of file pp_jtag.cpp.

void PPJTAG::dreg unsigned char *    data,
unsigned char    length,
bool    writeOnly = false
[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.

Implements JTAGControl.

Definition at line 207 of file pp_jtag.cpp.

void PPJTAG::idle unsigned int    nbTCK [virtual]
 

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

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

Implements JTAGControl.

Definition at line 286 of file pp_jtag.cpp.

bool PPJTAG::init int    argc,
char **    argv
[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.

Implements JTAGControl.

Definition at line 72 of file pp_jtag.cpp.

References port.

void PPJTAG::ireg unsigned char *    data [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.

Implements JTAGControl.

Definition at line 184 of file pp_jtag.cpp.

void PPJTAG::jtagReset void    [virtual]
 

Put the JTAG in run test/idle mode.

Returns:
nothing.

Implements JTAGControl.

Definition at line 229 of file pp_jtag.cpp.

References trst().

void PPJTAG::trst bool    state [virtual]
 

Assert or deassert the TRST (JTAG Reset).

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

Implements JTAGControl.

Definition at line 270 of file pp_jtag.cpp.

Referenced by jtagReset().


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