From f9e0e1dd63beb0cb3e72724ea19d6a70ba2af708 Mon Sep 17 00:00:00 2001 From: Rodrigo Alfonso Date: Fri, 3 Jan 2025 09:00:04 -0300 Subject: [PATCH] Documenting internal instances --- lib/LinkUniversal.hpp | 7 +++++++ lib/LinkWireless.hpp | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/LinkUniversal.hpp b/lib/LinkUniversal.hpp index 2706778..ec8006c 100644 --- a/lib/LinkUniversal.hpp +++ b/lib/LinkUniversal.hpp @@ -450,7 +450,14 @@ class LinkUniversal { linkWireless->_onTimer(); } + /** + * @brief The internal `LinkCable` instance. + */ LinkCable* linkCable; + + /** + * @brief The internal `LinkWireless` instance. + */ LinkWireless* linkWireless; private: diff --git a/lib/LinkWireless.hpp b/lib/LinkWireless.hpp index 59f709e..9fcb249 100644 --- a/lib/LinkWireless.hpp +++ b/lib/LinkWireless.hpp @@ -884,6 +884,11 @@ class LinkWireless { */ Config config; + /** + * @brief The internal `LinkRawWireless` instance. + */ + LinkRawWireless* linkRawWireless = new LinkRawWireless(); + private: using MessageQueue = Link::Queue; @@ -957,7 +962,6 @@ class LinkWireless { SessionState sessionState; AsyncCommand asyncCommand; - LinkRawWireless* linkRawWireless = new LinkRawWireless(); u32 nextAsyncCommandData[LINK_WIRELESS_MAX_COMMAND_TRANSFER_LENGTH]; u32 nextAsyncCommandDataSize = 0; volatile bool isSendingSyncCommand = false;