AcquisitionDevice: Count completed descriptors

This commit is contained in:
2023-09-19 12:53:59 +02:00
parent ead3219a64
commit 8e0edab0ee
16 changed files with 66 additions and 11 deletions
+8 -1
View File
@@ -236,4 +236,11 @@ void PCIExpressDevice::HW_LoadCalibration(uint32_t in_modules, uint32_t in_stora
if (ioctl(fd, IOCTL_JFJOCH_LOAD_CALIB, &config) != 0)
throw JFJochException(JFJochExceptionCategory::PCIeError,
"Failed writing config", errno);
}
}
uint32_t PCIExpressDevice::GetCompletedDescriptors() const {
uint32_t ret = 0;
if (ioctl(fd, IOCTL_JFJOCH_C2H_DMA_DESC, &ret) != 0)
throw JFJochException(JFJochExceptionCategory::PCIeError, "Failed geting C2H completed descriptor count", errno);
return ret;
}