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

Templates for ITkPix Emulator. More...

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

Go to the source code of this file.

Classes

class  itk::itkpix::emu::intf::Emulator
 Emulator interface on downlink/uplink streams level. downlink provided as 16-bit command frames uplink provided as 64-bit data stream. More...
 

Variables

template<typename T >
concept itk::itkpix::emu::concepts::Emulator
 Emulator interface on downlink/uplink streams level. Downlink is represented as 16-bit command frames. Uplink is represented as 64-bit data frames. More...
 

Detailed Description

Templates for ITkPix Emulator.

Variable Documentation

◆ Emulator

template<typename T >
concept itk::itkpix::emu::concepts::Emulator
Initial value:
=
std::constructible_from<T, uint8_t> and
std::destructible<T> and
requires(T self) {
{ self.reset() } -> std::same_as<void>;
} and
requires(T self, const std::span<const uint16_t> cmds) {
{ self.send_cmds(cmds) } -> std::same_as<void>;
} and
requires(T self, std::function<void(const uint64_t* data, size_t size)> on_data) {
{ self.callback_on_data(on_data) } -> std::same_as<void>;
} and
requires(T self, std::function<void(const uint64_t data)> on_service) {
{ self.callback_on_service(on_service) } -> std::same_as<void>;
}
uint16_t size
Definition: fragheader.hpp:5

Emulator interface on downlink/uplink streams level. Downlink is represented as 16-bit command frames. Uplink is represented as 64-bit data frames.

class Emulator

Template Parameters
T- Emulator implementation