FPGA: non-blocking mode (to be tested)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "Completion.h"
|
||||
#include "../../common/JFJochException.h"
|
||||
#include "../../common/Definitions.h"
|
||||
|
||||
inline uint64_t bit_concat(uint32_t high, uint32_t low) {
|
||||
return (uint64_t(high) << 32) | low;
|
||||
@@ -25,9 +26,9 @@ Completion parse_hw_completion(uint32_t tmp[16]) {
|
||||
if (parity == 1)
|
||||
throw JFJochException(JFJochExceptionCategory::HardwareParityError, "Wrong parity in work completion");
|
||||
|
||||
if (c.handle == UINT32_MAX -1) {
|
||||
if (c.handle == HANDLE_START) {
|
||||
c.type = Completion::Type::Start;
|
||||
} else if (c.handle == UINT32_MAX) {
|
||||
} else if (c.handle == HANDLE_END) {
|
||||
c.type = Completion::Type::End;
|
||||
c.frame_number = detector_frame_number;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user