mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-07 18:40:42 +02:00
formatting
This commit is contained in:
parent
b4533ac11f
commit
9c57571a41
@ -63,7 +63,8 @@ int mapCSP0(void) {
|
|||||||
*cspbases[i] = malloc(memsize[i]);
|
*cspbases[i] = malloc(memsize[i]);
|
||||||
if (*cspbases[i] == NULL) {
|
if (*cspbases[i] == NULL) {
|
||||||
LOG(logERROR,
|
LOG(logERROR,
|
||||||
("Could not allocate virtual memory of size %d for %s.\n", memsize[i], names[i]));
|
("Could not allocate virtual memory of size %d for %s.\n",
|
||||||
|
memsize[i], names[i]));
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
LOG(logINFO, ("memory allocated for %s\n", names[i]));
|
LOG(logINFO, ("memory allocated for %s\n", names[i]));
|
||||||
@ -83,8 +84,9 @@ int mapCSP0(void) {
|
|||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
LOG(logINFO, ("%s mapped of size %d from %p to %p,(CSP:0x%x) \n", names[i], memsize[i],
|
LOG(logINFO,
|
||||||
*cspbases[i], *cspbases[i] + memsize[i], csps[i]));
|
("%s mapped of size %d from %p to %p,(CSP:0x%x) \n", names[i],
|
||||||
|
memsize[i], *cspbases[i], *cspbases[i] + memsize[i], csps[i]));
|
||||||
// LOG(logINFO, ("Status Register: %08x\n", bus_r(STATUS_REG)));
|
// LOG(logINFO, ("Status Register: %08x\n", bus_r(STATUS_REG)));
|
||||||
} else
|
} else
|
||||||
LOG(logINFO, ("Memory %s already mapped before\n", names[i]));
|
LOG(logINFO, ("Memory %s already mapped before\n", names[i]));
|
||||||
|
@ -71,7 +71,8 @@ class Caller {
|
|||||||
using StringMap = std::map<std::string, std::string>;
|
using StringMap = std::map<std::string, std::string>;
|
||||||
Detector *ptr; // pointer to the detector that executes the command
|
Detector *ptr; // pointer to the detector that executes the command
|
||||||
|
|
||||||
static void EmptyDataCallBack(detectorData *data, uint64_t frameIndex, uint32_t subFrameIndex, void *this_pointer);
|
static void EmptyDataCallBack(detectorData *data, uint64_t frameIndex,
|
||||||
|
uint32_t subFrameIndex, void *this_pointer);
|
||||||
|
|
||||||
FunctionMap functions{
|
FunctionMap functions{
|
||||||
{"list", &Caller::list},
|
{"list", &Caller::list},
|
||||||
|
@ -42,7 +42,8 @@ int main(int argc, char *argv[]) {
|
|||||||
sls::CmdParser parser;
|
sls::CmdParser parser;
|
||||||
parser.Parse(argc, argv);
|
parser.Parse(argc, argv);
|
||||||
|
|
||||||
if (action == slsDetectorDefs::READOUT_ACTION || action == slsDetectorDefs::READOUT_ZMQ_ACTION)
|
if (action == slsDetectorDefs::READOUT_ACTION ||
|
||||||
|
action == slsDetectorDefs::READOUT_ZMQ_ACTION)
|
||||||
parser.setCommand("acquire");
|
parser.setCommand("acquire");
|
||||||
|
|
||||||
if (parser.isHelp())
|
if (parser.isHelp())
|
||||||
|
@ -744,8 +744,9 @@ void DetectorImpl::readFrameFromReceiver() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG(logDEBUG) << "Call Back Info:" << "\n\t nDetPixelsX: "
|
LOG(logDEBUG) << "Call Back Info:"
|
||||||
<< nDetPixelsX << "\n\t nDetPixelsY: " << nDetPixelsY
|
<< "\n\t nDetPixelsX: " << nDetPixelsX
|
||||||
|
<< "\n\t nDetPixelsY: " << nDetPixelsY
|
||||||
<< "\n\t databytes: " << multisize
|
<< "\n\t databytes: " << multisize
|
||||||
<< "\n\t dynamicRange: " << dynamicRange;
|
<< "\n\t dynamicRange: " << dynamicRange;
|
||||||
|
|
||||||
@ -763,8 +764,8 @@ void DetectorImpl::readFrameFromReceiver() {
|
|||||||
callbackImage = multigappixels;
|
callbackImage = multigappixels;
|
||||||
imagesize = n;
|
imagesize = n;
|
||||||
}
|
}
|
||||||
LOG(logDEBUG) << "Image Info:" << "\n\tnDetActualPixelsX: "
|
LOG(logDEBUG) << "Image Info:"
|
||||||
<< nDetActualPixelsX
|
<< "\n\tnDetActualPixelsX: " << nDetActualPixelsX
|
||||||
<< "\n\tnDetActualPixelsY: " << nDetActualPixelsY
|
<< "\n\tnDetActualPixelsY: " << nDetActualPixelsY
|
||||||
<< "\n\timagesize: " << imagesize
|
<< "\n\timagesize: " << imagesize
|
||||||
<< "\n\tdynamicRange: " << dynamicRange;
|
<< "\n\tdynamicRange: " << dynamicRange;
|
||||||
@ -799,7 +800,8 @@ void DetectorImpl::readFrameFromReceiver() {
|
|||||||
int DetectorImpl::insertGapPixels(char *image, char *&gpImage, bool quadEnable,
|
int DetectorImpl::insertGapPixels(char *image, char *&gpImage, bool quadEnable,
|
||||||
int dr, int &nPixelsx, int &nPixelsy) {
|
int dr, int &nPixelsx, int &nPixelsy) {
|
||||||
|
|
||||||
LOG(logDEBUG) << "Insert Gap pixels:" << "\n\t nPixelsx: " << nPixelsx
|
LOG(logDEBUG) << "Insert Gap pixels:"
|
||||||
|
<< "\n\t nPixelsx: " << nPixelsx
|
||||||
<< "\n\t nPixelsy: " << nPixelsy
|
<< "\n\t nPixelsy: " << nPixelsy
|
||||||
<< "\n\t quadEnable: " << quadEnable << "\n\t dr: " << dr;
|
<< "\n\t quadEnable: " << quadEnable << "\n\t dr: " << dr;
|
||||||
|
|
||||||
@ -884,10 +886,12 @@ int DetectorImpl::insertGapPixels(char *image, char *&gpImage, bool quadEnable,
|
|||||||
<< "nMod1Pixelsy: " << nMod1Pixelsy << "\n\t"
|
<< "nMod1Pixelsy: " << nMod1Pixelsy << "\n\t"
|
||||||
<< "nMod1GapPixelsx: " << nMod1GapPixelsx << "\n\t"
|
<< "nMod1GapPixelsx: " << nMod1GapPixelsx << "\n\t"
|
||||||
<< "nMod1GapPixelsy: " << nMod1GapPixelsy << "\n\t"
|
<< "nMod1GapPixelsy: " << nMod1GapPixelsy << "\n\t"
|
||||||
<< "nChipy: " << nChipy << "\n\t" << "nChipx: " << nChipx
|
<< "nChipy: " << nChipy << "\n\t"
|
||||||
<< "\n\t" << "nModx: " << nModx << "\n\t"
|
<< "nChipx: " << nChipx << "\n\t"
|
||||||
<< "nMody: " << nMody << "\n\t" << "nTotx: " << nTotx
|
<< "nModx: " << nModx << "\n\t"
|
||||||
<< "\n\t" << "nToty: " << nToty << "\n\t"
|
<< "nMody: " << nMody << "\n\t"
|
||||||
|
<< "nTotx: " << nTotx << "\n\t"
|
||||||
|
<< "nToty: " << nToty << "\n\t"
|
||||||
<< "bytesPerPixel: " << bytesPerPixel << "\n\t"
|
<< "bytesPerPixel: " << bytesPerPixel << "\n\t"
|
||||||
<< "imagesize: " << imagesize << "\n\t"
|
<< "imagesize: " << imagesize << "\n\t"
|
||||||
<< "nChipBytesx: " << nChipBytesx << "\n\t"
|
<< "nChipBytesx: " << nChipBytesx << "\n\t"
|
||||||
|
@ -216,7 +216,13 @@ typedef struct {
|
|||||||
/**
|
/**
|
||||||
type of action performed (for text client)
|
type of action performed (for text client)
|
||||||
*/
|
*/
|
||||||
enum { GET_ACTION, PUT_ACTION, READOUT_ACTION, HELP_ACTION, READOUT_ZMQ_ACTION };
|
enum {
|
||||||
|
GET_ACTION,
|
||||||
|
PUT_ACTION,
|
||||||
|
READOUT_ACTION,
|
||||||
|
HELP_ACTION,
|
||||||
|
READOUT_ZMQ_ACTION
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
dimension indexes
|
dimension indexes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user