mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-11 08:07:24 -05:00
* #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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user