#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

@@ -21,10 +21,15 @@
*/
package io.github.dsheirer.source;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.EnumSet;
public class SourceEvent
{
private final static Logger mLog = LoggerFactory.getLogger(SourceEvent.class);
public enum Event
{
NOTIFICATION_CHANNEL_COUNT_CHANGE,
@@ -46,6 +51,7 @@ public class SourceEvent
REQUEST_CHANNEL_FREQUENCY_CORRECTION_CHANGE,
REQUEST_FREQUENCY_CHANGE,
REQUEST_FREQUENCY_ROTATION,
REQUEST_FREQUENCY_SELECTION,
REQUEST_SOURCE_DISPOSE,
REQUEST_START_SAMPLE_STREAM,
REQUEST_STOP_SAMPLE_STREAM;
@@ -388,6 +394,15 @@ public class SourceEvent
return new SourceEvent(Event.REQUEST_FREQUENCY_ROTATION);
}
/**
* Creates a request to cycle to a specific frequency. This is normally used for decoders to request the
* next frequency in a list when a multiple-frequency source configuration is defined.
*/
public static SourceEvent frequencySelectionRequest()
{
return new SourceEvent(Event.REQUEST_FREQUENCY_SELECTION);
}
/**
* Creates a notification that the request to rotate the source frequency to the next frequency in the list
* was successful.