#6 DMR Decoder (#947)

* #6 DMR decoder feature - work in progress

* #6 DMR Decoder.

* #6 DMR Decoder.  Code review updates.

Co-authored-by: Zhenyu Mao <maozhenyu@foxmail.com>
Co-authored-by: Denny <denny@denny-desktop>
This commit is contained in:
Denny Sheirer
2020-10-12 04:57:59 -04:00
committed by GitHub
parent b061db1189
commit 7eec82deee
436 changed files with 36258 additions and 2409 deletions

View File

@@ -30,6 +30,22 @@ public class SyncLossMessage extends Message
{
private int mBitsProcessed;
private Protocol mProtocol;
private int mTimeslot = 0;
/**
* Constructs a sync loss message.
*
* @param timestamp of the message
* @param bitsProcessed without a sync pattern detection of message decode
* @param timeslot that lost the sync
*/
public SyncLossMessage(long timestamp, int bitsProcessed, Protocol protocol, int timeslot)
{
super(timestamp);
mBitsProcessed = bitsProcessed;
mProtocol = protocol;
mTimeslot = timeslot;
}
/**
* Constructs a sync loss message.
@@ -39,13 +55,21 @@ public class SyncLossMessage extends Message
*/
public SyncLossMessage(long timestamp, int bitsProcessed, Protocol protocol)
{
super(timestamp);
mBitsProcessed = bitsProcessed;
mProtocol = protocol;
this(timestamp, bitsProcessed, protocol, 0);
}
/**
* Indicates the number of bits that were processed without a sync dectection or message decode
* Timeslot that lost the sync
* @return timeslot or a default of 0
*/
@Override
public int getTimeslot()
{
return mTimeslot;
}
/**
* Indicates the number of bits that were processed without a sync detection or message decode
*/
public int getBitsProcessed()
{