Orion
high-rate readout
Classes | Variables
evtcallback.hpp File Reference

Interfaces for ITkPix decoder event callback. More...

#include <cstdint>
Include dependency graph for evtcallback.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  itk::itkpix::endec::EventError
 Callback on event decoding error. More...
 
class  itk::itkpix::endec::intf::EventCallback
 Callback interface for event. More...
 

Variables

template<typename T >
concept itk::itkpix::endec::concepts::EventCallback
 

Detailed Description

Interfaces for ITkPix decoder event callback.

Variable Documentation

◆ EventCallback

template<typename T >
concept itk::itkpix::endec::concepts::EventCallback
Initial value:
=
std::destructible<T> and
requires(T self, uint8_t tag) {
{ self.evt_init(tag) } -> std::same_as<void>;
{ self.evt_next(tag) } -> std::same_as<void>;
} and
requires(T self) {
{ self.evt_done() } -> std::same_as<void>;
} and
requires(T self, uint16_t col, uint16_t row, uint16_t tot) {
{ self.add_hit(col, row, tot) } -> std::same_as<void>;
} and
requires(T self, uint8_t qcol, uint8_t qrow, uint16_t hmap, uint64_t tots) {
{ self.add_hmap(qcol, qrow, hmap, tots) } -> std::same_as<void>;
} and
requires(T self, uint8_t qcol, uint8_t qrow, uint64_t qtot) {
{ self.add_qcore(qcol, qrow, qtot) } -> std::same_as<void>;
} and
requires(T self, EventError error) {
{ self.on_error(error) } -> std::same_as<uint8_t>;
}