2016-01-14 18:45:04 +00:00
|
|
|
/*
|
2016-03-23 17:30:06 +00:00
|
|
|
* Copyright (C) 2015,2016 by Jonathan Naylor, G4KLX
|
2016-01-14 18:45:04 +00:00
|
|
|
*
|
|
|
|
* 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);
|
|
|
|
|
2016-03-23 17:30:06 +00:00
|
|
|
unsigned char getBER() const;
|
|
|
|
void setBER(unsigned char ber);
|
|
|
|
|
|
|
|
unsigned char getRSSI() const;
|
|
|
|
void setRSSI(unsigned char ber);
|
|
|
|
|
2016-01-14 18:45:04 +00:00
|
|
|
void setData(const unsigned char* buffer);
|
|
|
|
unsigned int getData(unsigned char* buffer) 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;
|
|
|
|
unsigned char m_n;
|
2016-03-23 17:30:06 +00:00
|
|
|
unsigned char m_ber;
|
|
|
|
unsigned char m_rssi;
|
2016-01-14 18:45:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|