mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
program fpga made parallel
This commit is contained in:
@ -1,12 +1,5 @@
|
||||
#ifndef MULTI_SLS_DETECTOR_H
|
||||
#define MULTI_SLS_DETECTOR_H
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
@libdoc The multiSlsDetector class is used to operate several slsDetectors in
|
||||
parallel.
|
||||
* @short This is the base class for multi detector system functionalities
|
||||
* @author Anna Bergamaschi
|
||||
*/
|
||||
#include "SharedMemory.h"
|
||||
#include "error_defs.h"
|
||||
#include "gitInfoLib.h"
|
||||
@ -2002,11 +1995,6 @@ class multiSlsDetector : public virtual slsDetectorDefs {
|
||||
*/
|
||||
void startProcessingThread();
|
||||
|
||||
// /**
|
||||
// * Static function to call processing thread
|
||||
// */
|
||||
// static void* startProcessData(void *n);
|
||||
|
||||
/**
|
||||
* Check if processing thread is ready to join main thread
|
||||
* @returns true if ready, else false
|
||||
@ -2025,6 +2013,15 @@ class multiSlsDetector : public virtual slsDetectorDefs {
|
||||
*/
|
||||
int kbhit();
|
||||
|
||||
/**
|
||||
* Convert raw file
|
||||
* @param fname name of pof file
|
||||
* @param fpgasrc pointer in memory to read pof to
|
||||
* @returns file size
|
||||
*/
|
||||
std::vector<char> readPofFile(const std::string &fname);
|
||||
|
||||
|
||||
/** Multi detector Id */
|
||||
const int multiId;
|
||||
|
||||
@ -2083,4 +2080,3 @@ class multiSlsDetector : public virtual slsDetectorDefs {
|
||||
void *pCallbackArg{nullptr};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1,13 +1,4 @@
|
||||
#ifndef SLS_DETECTOR_H
|
||||
#define SLS_DETECTOR_H
|
||||
|
||||
/**
|
||||
*
|
||||
* @short complete detector functionalities for a single module detector.
|
||||
* The slsDetector class takes care of the communication with the
|
||||
* detector and all kind actions related with a single detector controller
|
||||
* @author Anna Bergamaschi
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "ClientSocket.h"
|
||||
#include "SharedMemory.h"
|
||||
@ -17,6 +8,7 @@
|
||||
class ClientInterface;
|
||||
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
|
||||
class multiSlsDetector;
|
||||
class ServerInterface;
|
||||
@ -1286,11 +1278,11 @@ class slsDetector : public virtual slsDetectorDefs{
|
||||
int setStoragecellStart(int pos = -1);
|
||||
|
||||
/**
|
||||
* Programs FPGA with pof file (Jungfrau)
|
||||
* @param fname file name
|
||||
* Programs FPGA with pof file (Jungfrau, CTB, Moench)
|
||||
* @param buffer programming file in memory
|
||||
* @returns OK or FAIL
|
||||
*/
|
||||
int programFPGA(const std::string &fname);
|
||||
int programFPGA(std::vector<char> buffer);
|
||||
|
||||
/**
|
||||
* Resets FPGA (Jungfrau)
|
||||
@ -1826,4 +1818,3 @@ class slsDetector : public virtual slsDetectorDefs{
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user