2#include <bugui/hardware/protocol/protocol.hpp>
3#include <bugui/concepts/device.hpp>
14template <has_init Device>
16 :
virtual protocol<component<Device, class Device::init>>
19 void component_setup()
21 this->send([](
auto& formater)
24 (
array_like<
decltype(Device::init::message())>)
25 for (
const auto& m : Device::init::message())
28 formater.add(Device::init::message());
35template <init_component Component>
40 void component_setup()
42 this->send([](
auto& formater)
45 (
array_like<
decltype(Component::init_t::message())>)
46 for (
const auto& m : Component::init_t::message())
49 formater.add(Component::init_t::message());
Empty struct for devices that do not provide an initialisation command.
Definition init.hpp:10
Inherits from different protocols, depending on the device's specification.
Definition protocol.hpp:13