From ddda823b5588f5205f8a9ead7bd037253f5548a7 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Wed, 8 Jan 2025 21:00:26 -0500 Subject: [PATCH] whoops forgot to add files for previous commit; --- .../p25/dfsi/frames/fsc/FSCReportSelModes.cpp | 31 ++++++++++ .../p25/dfsi/frames/fsc/FSCReportSelModes.h | 56 +++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 src/common/p25/dfsi/frames/fsc/FSCReportSelModes.cpp create mode 100644 src/common/p25/dfsi/frames/fsc/FSCReportSelModes.h diff --git a/src/common/p25/dfsi/frames/fsc/FSCReportSelModes.cpp b/src/common/p25/dfsi/frames/fsc/FSCReportSelModes.cpp new file mode 100644 index 00000000..139a773c --- /dev/null +++ b/src/common/p25/dfsi/frames/fsc/FSCReportSelModes.cpp @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Digital Voice Modem - Common Library + * GPLv2 Open Source. Use is subject to license terms. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright (C) 2025 Bryan Biedenkapp, N2PLL + * + */ +#include "common/p25/dfsi/frames/fsc/FSCReportSelModes.h" +#include "common/p25/dfsi/DFSIDefines.h" +#include "common/Utils.h" +#include "common/Log.h" + +#include +#include + +using namespace p25::dfsi; +using namespace p25::dfsi::frames; +using namespace p25::dfsi::frames::fsc; + +// --------------------------------------------------------------------------- +// Public Class Members +// --------------------------------------------------------------------------- + +/* Initializes a instance of the FSCReportSelModes class. */ + +FSCReportSelModes::FSCReportSelModes() : FSCMessage() +{ + m_messageId = FSCMessageType::FSC_REPORT_SEL_MODES; +} diff --git a/src/common/p25/dfsi/frames/fsc/FSCReportSelModes.h b/src/common/p25/dfsi/frames/fsc/FSCReportSelModes.h new file mode 100644 index 00000000..e6be7042 --- /dev/null +++ b/src/common/p25/dfsi/frames/fsc/FSCReportSelModes.h @@ -0,0 +1,56 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Digital Voice Modem - Common Library + * GPLv2 Open Source. Use is subject to license terms. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright (C) 2025 Bryan Biedenkapp, N2PLL + * + */ +/** + * @file FSCReportSelModes.h + * @ingroup dfsi_fsc_frames + * @file FSCReportSelModes.cpp + * @ingroup dfsi_fsc_frames + */ +#if !defined(__FSC_REPORT_SEL_MODES_H__) +#define __FSC_REPORT_SEL_MODES_H__ + +#include "Defines.h" +#include "common/Defines.h" +#include "common/Log.h" +#include "common/Utils.h" +#include "common/p25/dfsi/frames/FrameDefines.h" +#include "common/p25/dfsi/frames/fsc/FSCMessage.h" + +namespace p25 +{ + namespace dfsi + { + namespace frames + { + namespace fsc + { + // --------------------------------------------------------------------------- + // Class Declaration + // --------------------------------------------------------------------------- + + /** + * @brief Implements the FSC Report Selected Modes Message. + * @ingroup dfsi_fsc_frames + */ + class HOST_SW_API FSCReportSelModes : public FSCMessage { + public: + static const uint8_t LENGTH = 3U; + + /** + * @brief Initializes a copy instance of the FSCReportSelModes class. + */ + FSCReportSelModes(); + }; + } // namespace fsc + } // namespace frames + } // namespace dfsi +} // namespace p25 + +#endif // __FSC_REPORT_SEL_MODES_H__ \ No newline at end of file