1 /* Monitor JTAG signals instead of using physical cable 2 3 Copyright (C) 2004 Andrew Rogers 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; if not, write to the Free Software 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ 18 19 20 21 22 #ifndef IODEBUG_H 23 #define IODEBUG_H 24 25 #include "iobase.h" 26 27 class IODebug : public IOBase 28 { 29 public: IODebug()30 IODebug() : IOBase(){} 31 void tx(bool tms, bool tdi); 32 bool txrx(bool tms, bool tdi); 33 void tx_tdi_byte(unsigned char tdi_byte); 34 void tx_tms(unsigned char *pat, int length, int force); 35 36 protected: 37 void txrx_block(const unsigned char *tdi, unsigned char *tdo, int length, bool last); 38 }; 39 40 41 #endif // IODEBUG_H 42