14 lines
443 B
C++
14 lines
443 B
C++
// Copyright (2019-2023) Paul Scherrer Institute
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#include "FPGAAcquisitionDevice.h"
|
|
|
|
Completion FPGAAcquisitionDevice::ReadCompletion() {
|
|
uint32_t values[12];
|
|
while (!HW_ReadMailbox(values)) {
|
|
// The receiving FIFO level is less than or equal to the RIT threshold
|
|
std::this_thread::sleep_for(std::chrono::microseconds(10));
|
|
}
|
|
return parse_hw_completion(values);
|
|
}
|