AcquisitionDevice: Count completed descriptors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user