void testDebug() { IOBase *io; io=new IODebug(); unsigned char tdi[]={0x3a,0xa3}; unsigned char tdo[10]; io->setTapState(IOBase::SHIFT_DR); io->shiftTDITDO(tdi,tdo,16,false); for(int i=0; i<2; i++)printf("TDO %02x\n",tdo[i]); delete io; }
void testPP() { IOBase *io; io=new IOParport("/dev/parport0"); unsigned char tdi[]={0,0,0,0,0,0,0,0}; unsigned char tdo[100]; io->setTapState(IOBase::SHIFT_DR); io->shiftTDITDO(tdi,tdo,64); for(int i=0; i<8; i++)printf("TDO %02x\n",tdo[i]); printf("\n"); getSwitches(io); getID(io); delete io; }