/** * @file communication.hpp * @brief Manages communication with the host computer. * * Copyright (C) 2023 Clyne Sullivan * * Distributed under the GNU GPL v3 or later. You should have received a copy of * the GNU General Public License along with this program. * If not, see . */ #ifndef STMDSP_COMMUNICATION_HPP #define STMDSP_COMMUNICATION_HPP #include class CommunicationManager { public: /** * Starts the communication manager thread (threadComm). */ static void begin(); private: /** * Continuously polls the USB serial connection, handling received commands * as necessary. * Does not return. */ static void threadComm(void *); static std::array m_thread_stack; }; #endif // STMDSP_COMMUNICATION_HPP