/** * Digital Voice Modem - Host Software * GPLv2 Open Source. Use is subject to license terms. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * @package DVM / Host Software * */ // // Based on code from the MMDVMHost project. (https://github.com/g4klx/MMDVMHost) // Licensed under the GPLv2 License (https://opensource.org/licenses/GPL-2.0) // /* * Copyright (C) 2015,2016 by Jonathan Naylor, G4KLX * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #if !defined(__DMR_DATA__DATA_H__) #define __DMR_DATA__DATA_H__ #include "Defines.h" #include "dmr/DMRDefines.h" namespace dmr { namespace data { // --------------------------------------------------------------------------- // Class Declaration // Represents general DMR data. // --------------------------------------------------------------------------- class HOST_SW_API Data { public: /// Initializes a new instance of the Data class. Data(const Data& data); /// Initializes a new instance of the Data class. Data(); /// Finalizes a instance of the Data class. ~Data(); /// Equals operator. Data& operator=(const Data& data); /// void setData(const uint8_t* buffer); /// uint32_t getData(uint8_t* buffer) const; public: /// DMR slot number. __PROPERTY(uint32_t, slotNo, SlotNo); /// Source ID. __PROPERTY(uint32_t, srcId, SrcId); /// Destination ID. __PROPERTY(uint32_t, dstId, DstId); /// Sets the full-link control opcode. __PROPERTY(uint8_t, flco, FLCO); /// __PROPERTY(uint8_t, n, N); /// Sequence number. __PROPERTY(uint8_t, seqNo, SeqNo); /// __PROPERTY(uint8_t, dataType, DataType); /// __PROPERTY(uint8_t, ber, BER); /// __PROPERTY(uint8_t, rssi, RSSI); private: uint8_t* m_data; }; } // namespace data } // namespace dmr #endif // __DMR_DATA__DATA_H__