From 0af156182006f97caeae90cd2897bf162a47c9bd Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Thu, 30 Mar 2023 20:36:16 +0200 Subject: [PATCH] Define composable command interface --- modules/control/Firmware/src/Messages/Composer.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/control/Firmware/src/Messages/Composer.h b/modules/control/Firmware/src/Messages/Composer.h index 469d527..dcbd61f 100644 --- a/modules/control/Firmware/src/Messages/Composer.h +++ b/modules/control/Firmware/src/Messages/Composer.h @@ -1,9 +1,21 @@ #pragma once #include "Protocol.h" +#include +#include #include namespace message { namespace composer { +enum class ComposableType { + MESSAGE_LIGHTDATA, + MESSAGE_INFO, + MESSAGE_WARNING, + MESSAGE_ERROR, + MESSAGE_SUCCESS, + COMMAND_HELP, + COMMAND_VERSION, +}; +using Composable = etl::pair>>; bool sendMessage(protocol::Message type, etl::string_view content); } // namespace composer } // namespace message