13 namespace itk::itkpix::cmd {
31 virtual void decode(uint16_t cmd) = 0;
35 virtual void decode(
const std::span<const uint16_t> cmds) = 0;
57 std::constructible_from<T, typename T::CommandCallback&> and
61 std::constructible_from<T, uint8_t, typename T::CommandCallback&> and
64 std::destructible<T> and
72 {
self.reset() } -> std::same_as<void>;
77 requires(T
self, uint16_t cmd) {
78 {
self.decode(cmd) } -> std::same_as<void>;
84 requires(T
self, uint16_t* cmds,
size_t size) {
85 {
self.decode(cmds,
size) } -> std::same_as<void>;
90 requires(T
self,
const std::span<const uint16_t> cmds) {
91 {
self.decode(cmds) } -> std::same_as<void>;
Command callback interface for ITkPix.
Definition: cmdcallback.hpp:20
Command stream decoder interface.
Definition: cmddecoder.hpp:20
virtual void decode(const std::span< const uint16_t > cmds)=0
Decode 16-bit commands.
void decode(const uint16_t *cmds, size_t size)
Decode 16-bit commands.
Definition: cmddecoder.hpp:40
virtual void decode(uint16_t cmd)=0
Decode 16-bit command.
virtual void reset()=0
Reset command decoder.
Dummy CommandCallback implementation.