Package org.ka2ddo.yaac.io
Interface TuneIfc
public interface TuneIfc
This interface allows a plugin to provide an API to tune a radio based
on a repeater frequency PositionMessage, so a TUNE button on the
KenwoodRadioViewPane
can actually work without
having to call up the plugin view.- Author:
- Andrew Pavlin, KA2DDO
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
These enum values report the results of calling thetuneForRepeater(AX25Message)
method. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Report if an AX.25 message contains information describing a repeater station.boolean
Report whether the connected radio is capable of receiving two different frequencies at the same time, ex.: Kenwood TM-D710.boolean
Test if this interface provides a tuneable radio.Tune the single-receiver radio back to the APRS frequency.Tune the associated radio to work with the repeater specified by the message.
-
Method Details
-
isRadioTunable
boolean isRadioTunable()Test if this interface provides a tuneable radio.- Returns:
- boolean true if radio can be tuned
-
isRadioDual
boolean isRadioDual()Report whether the connected radio is capable of receiving two different frequencies at the same time, ex.: Kenwood TM-D710. Note that if a single-frequency radio is being used for APRS and repeaters, the APRS beacons should be turned off when switching to the alternate frequency.- Returns:
- boolean true if radio supports dual receivers, false if not
-
isMsgForRepeater
Report if an AX.25 message contains information describing a repeater station.- Parameters:
msg
- AX25Message to analyze- Returns:
- boolean true if the message describes a repeater
-
tuneForRepeater
Tune the associated radio to work with the repeater specified by the message.- Parameters:
msg
- AX25Message to analyze- Returns:
- the status of the tune attempt
-
restoreOldFrequency
TuneIfc.TuneResult restoreOldFrequency()Tune the single-receiver radio back to the APRS frequency.- Returns:
- TuneResult indicating how the radio tuned back to APRS
-