modes

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidMode

func IsValidMode(s string) bool

IsValidMode returns true if s is one of the supported ADIF main modes used by this app.

func IsValidSubMode

func IsValidSubMode(s string) bool

IsValidSubMode returns true if the string corresponds to a known ADIF submode handled by this app.

Types

type Mode

type Mode string
const (
	AM           Mode = "AM"
	CW           Mode = "CW"
	FM           Mode = "FM"
	RTTY         Mode = "RTTY"
	SSB          Mode = "SSB"
	DIGITALVOICE Mode = "DIGITALVOICE"
	MFSK         Mode = "MFSK"
	PSK          Mode = "PSK"
	HELL         Mode = "HELL"
	PACKET       Mode = "PACKET"
)

func GetModeBySubmode

func GetModeBySubmode(s string) (Mode, bool)

GetModeBySubmode returns the parent main mode for a given ADIF submode. The bool return indicates whether a mapping was found.

func (Mode) String

func (m Mode) String() string

type SubMode

type SubMode string
const (
	USB SubMode = "USB"
	LSB SubMode = "LSB"
)

func (SubMode) String

func (m SubMode) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL