//---------------------------------------------------------------- // ---- classes de threads pour lecture (transfert DMA) // et ecriture disque pour acquisition BAORadio ----- // LAL - R. Ansari - Juin/Juillet 2008 //---------------------------------------------------------------- #include "racqurw.h" #include #include #include #include "pexceptions.h" #include "timestamp.h" #include "pciewrap.h" #include "brpaqu.h" #include "minifits.h" //------------------------------------------------------- // Classe thread de lecture PCI-Express //------------------------------------------------------- PCIEReader::PCIEReader(RAcqMemZoneMgr& mem, uint_4 nmax) : memgr(mem) { nmax_ = nmax; stop_ = false; } void PCIEReader::run() { cout << " PCIEReader::run() - Starting , NMaxMemZones=" << nmax_ << endl; setRC(1); PCIEWrapper pciw; uint_4 paqsz = memgr.PaqSize(); for (uint_4 kmz=0; kmz NULL" << endl; setRC(2); return; } for(uint_4 i=0; i NULL" << endl; setRC(2); return; } sprintf(fname,"%s/signal%d.fits",path_.c_str(),(int)kmz); MiniFITSFile mff(fname,MF_Write); BRPaquet paq0(NULL, buff, paqsz); mff.setDTypeNaxis(MF_Byte, paq0.DataSize(), memgr.NbPaquets()); for(uint_4 i=0; i