Extend FPGA functionality

This commit is contained in:
2023-12-09 12:08:39 +01:00
parent 35a9614f38
commit 1798de247b
97 changed files with 2302 additions and 3672 deletions
+9 -4
View File
@@ -20,10 +20,6 @@ PCIExpressDevice::PCIExpressDevice(uint16_t data_stream, const std::string &devi
uint32_t num_buf = GetNumKernelBuffers();
if (num_buf < max_modules * (3 + 3 * 16))
throw JFJochException(JFJochExceptionCategory::PCIeError,
"Need to increase number of host-device buffers");
buffer_device.resize(num_buf, nullptr);
try {
for (int i = 0; i < num_buf; i++)
@@ -138,3 +134,12 @@ DeviceStatus PCIExpressDevice::GetDeviceStatus() const {
DataCollectionStatus PCIExpressDevice::GetDataCollectionStatus() const {
return dev.GetDataCollectionStatus();
}
uint32_t PCIExpressDevice::HW_GetDataSource() {
return dev.GetDataSource();
}
void PCIExpressDevice::HW_SetDataSource(uint32_t val) {
return dev.SetDataSource(val);
}