mirror of
https://github.com/ShaYmez/MMDVM_CM.git
synced 2024-11-20 07:01:45 -05:00
79 lines
1.8 KiB
C
79 lines
1.8 KiB
C
|
/*
|
||
|
* Copyright (C) 2015,2016,2017 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.
|
||
|
*/
|
||
|
|
||
|
#ifndef DMRData_H
|
||
|
#define DMRData_H
|
||
|
|
||
|
#include "DMRDefines.h"
|
||
|
|
||
|
class CDMRData {
|
||
|
public:
|
||
|
CDMRData(const CDMRData& data);
|
||
|
CDMRData();
|
||
|
~CDMRData();
|
||
|
|
||
|
CDMRData& operator=(const CDMRData& data);
|
||
|
|
||
|
unsigned int getSlotNo() const;
|
||
|
void setSlotNo(unsigned int slotNo);
|
||
|
|
||
|
unsigned int getSrcId() const;
|
||
|
void setSrcId(unsigned int id);
|
||
|
|
||
|
unsigned int getDstId() const;
|
||
|
void setDstId(unsigned int id);
|
||
|
|
||
|
FLCO getFLCO() const;
|
||
|
void setFLCO(FLCO flco);
|
||
|
|
||
|
unsigned char getN() const;
|
||
|
void setN(unsigned char n);
|
||
|
|
||
|
unsigned char getSeqNo() const;
|
||
|
void setSeqNo(unsigned char seqNo);
|
||
|
|
||
|
unsigned char getDataType() const;
|
||
|
void setDataType(unsigned char dataType);
|
||
|
|
||
|
bool isMissing() const;
|
||
|
void setMissing(bool missing);
|
||
|
|
||
|
unsigned char getBER() const;
|
||
|
void setBER(unsigned char ber);
|
||
|
|
||
|
unsigned char getRSSI() const;
|
||
|
void setRSSI(unsigned char rssi);
|
||
|
|
||
|
void setData(const unsigned char* buffer);
|
||
|
unsigned int getData(unsigned char* buffer) const;
|
||
|
|
||
|
void setStreamId(unsigned int id);
|
||
|
unsigned int getStreamId() const;
|
||
|
|
||
|
private:
|
||
|
unsigned int m_slotNo;
|
||
|
unsigned char* m_data;
|
||
|
unsigned int m_srcId;
|
||
|
unsigned int m_dstId;
|
||
|
FLCO m_flco;
|
||
|
unsigned char m_dataType;
|
||
|
unsigned char m_seqNo;
|
||
|
bool m_missing;
|
||
|
unsigned char m_n;
|
||
|
unsigned char m_ber;
|
||
|
unsigned char m_rssi;
|
||
|
unsigned int m_streamId;
|
||
|
};
|
||
|
|
||
|
#endif
|