mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 01:58:00 +02:00
ctb:separated analog and digital samples in server and send analog and digital data packed separately per frame to reciever
This commit is contained in:
@ -574,27 +574,12 @@ int allocateRAM() {
|
||||
|
||||
void updateDataBytes() {
|
||||
int oldDataBytes = dataBytes;
|
||||
dataBytes = NCHIP * getChannels() * NUM_BYTES_PER_PIXEL * nSamples;
|
||||
dataBytes = NCHIP * NUM_BYTES_PER_PIXEL * nSamples;
|
||||
if (dataBytes != oldDataBytes) {
|
||||
FILE_LOG(logINFO, ("\tUpdating Databytes: %d\n", dataBytes));
|
||||
}
|
||||
}
|
||||
|
||||
int getChannels() {
|
||||
int nchans = 0;
|
||||
|
||||
nchans += NCHAN;
|
||||
// remove the channels disabled
|
||||
int ichan = 0;
|
||||
for (ichan = 0; ichan < NCHAN; ++ichan) {
|
||||
if (adcDisableMask & (1 << ichan))
|
||||
--nchans;
|
||||
}
|
||||
|
||||
FILE_LOG(logINFO, ("\tNumber of Channels calculated: %d\n", nchans))
|
||||
return nchans;
|
||||
}
|
||||
|
||||
|
||||
/* firmware functions (resets) */
|
||||
|
||||
|
Reference in New Issue
Block a user