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

pp_jtag.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of Jelie,
00003  * (c) 2002 Julien Pilet <julien.pilet@epfl.ch> and
00004  * Stephane Magnenat <stephane.magnenat@epfl.ch>
00005  *
00006  * Jelie is free software; you can redistribute it
00007  * and/or modify it under the terms of the GNU General Public License as
00008  * published by the Free Software Foundation; either version 2 of the License,
00009  * or (at your option) any later version.
00010  *
00011  * Jelie is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with Foobar; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 
00028 #ifndef _PP_JTAG_H
00029 #define _PP_JTAG_H
00030 
00031 #include "jtag.h"
00032 
00034 class PPJTAG : public JTAGControl {
00035 public:
00036         virtual bool init(int argc, char **argv);
00037 
00038         virtual void ireg(unsigned char *data);
00039 
00040         virtual void dreg(unsigned char *data, unsigned char length, bool writeOnly=false);
00041 
00042         virtual void jtagReset(void);
00043 
00044         virtual void cpuReset(bool state);
00045 
00046         virtual void trst(bool state);
00047 
00048         virtual void idle(unsigned int nbTCK);
00049 
00050         virtual void flushQueue(void) {}
00051 
00052         virtual const char *getName(void) const { return "pp"; }
00053 
00054         PPJTAG();
00055 
00056 private:
00058         unsigned short port;
00059         unsigned char permBits, portVal;
00060         int jtagRestarted;
00061 
00062         //static unsigned char inb(unsigned short int port);
00063         //static void outb(unsigned char value, unsigned short int port);
00064         unsigned char readJTAG();
00065         void writeJTAG(unsigned char data);
00066         void jtagReg(unsigned char *_data, unsigned char length);
00067 };
00068 
00069 #endif // _PP_JTAG_H
00070 

Generated on Fri May 16 13:01:45 2003 for Jelie by doxygen1.2.15