Extend FPGA functionality
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user