remoteradio

package
v0.0.0-...-f747631 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPollingInterval

func GetPollingInterval(r *RemoteRadio, log *log.Logger, args []string)

func GetPrintRigUpdates

func GetPrintRigUpdates(r *RemoteRadio, log *log.Logger, args []string)

func GetSyncInterval

func GetSyncInterval(r *RemoteRadio, log *log.Logger, args []string)

func SetPollingInterval

func SetPollingInterval(r *RemoteRadio, log *log.Logger, args []string)

func SetPrintRigUpdates

func SetPrintRigUpdates(r *RemoteRadio, log *log.Logger, args []string)

func SetSyncInterval

func SetSyncInterval(r *RemoteRadio, log *log.Logger, args []string)

Types

type RemoteCliCmd

type RemoteCliCmd struct {
	Cmd         func(r *RemoteRadio, log *log.Logger, args []string)
	Name        string
	Shortcut    string
	Parameters  string
	Description string
	Example     string
}

func GetRemoteCliCmds

func GetRemoteCliCmds() []RemoteCliCmd

type RemoteRadio

type RemoteRadio struct {
	// contains filtered or unexported fields
}

func NewRemoteRadio

func NewRemoteRadio(topic, userID string, toWire chan comms.IOMsg, logger *log.Logger, events *pubsub.PubSub) RemoteRadio

func (*RemoteRadio) DeserializeCaps

func (r *RemoteRadio) DeserializeCaps(msg []byte) error

func (*RemoteRadio) DeserializeCatResponse

func (r *RemoteRadio) DeserializeCatResponse(msg []byte) error

func (*RemoteRadio) DeserializeRadioStatus

func (r *RemoteRadio) DeserializeRadioStatus(data []byte) error

func (*RemoteRadio) ExecVfoOps

func (r *RemoteRadio) ExecVfoOps(ops []string) error

func (*RemoteRadio) GetAntenna

func (r *RemoteRadio) GetAntenna() (int, error)

func (*RemoteRadio) GetCaps

func (r *RemoteRadio) GetCaps() (sbRadio.Capabilities, error)

func (*RemoteRadio) GetFrequency

func (r *RemoteRadio) GetFrequency() (float64, error)

func (*RemoteRadio) GetFunction

func (r *RemoteRadio) GetFunction(function string) (bool, error)

func (*RemoteRadio) GetLevel

func (r *RemoteRadio) GetLevel(level string) (float32, error)

func (*RemoteRadio) GetMode

func (r *RemoteRadio) GetMode() (string, int, error)

func (*RemoteRadio) GetParameter

func (r *RemoteRadio) GetParameter(parm string) (float32, error)

func (*RemoteRadio) GetPowerstat

func (r *RemoteRadio) GetPowerstat() (bool, error)

func (*RemoteRadio) GetPtt

func (r *RemoteRadio) GetPtt() (bool, error)

func (*RemoteRadio) GetRit

func (r *RemoteRadio) GetRit() (int, error)

func (*RemoteRadio) GetSplitFrequency

func (r *RemoteRadio) GetSplitFrequency() (float64, error)

func (*RemoteRadio) GetSplitFrequencyMode

func (r *RemoteRadio) GetSplitFrequencyMode() (float64, string, int, error)

func (*RemoteRadio) GetSplitMode

func (r *RemoteRadio) GetSplitMode() (string, int, error)

func (*RemoteRadio) GetSplitPbWidth

func (r *RemoteRadio) GetSplitPbWidth() (int, error)

func (*RemoteRadio) GetSplitVfo

func (r *RemoteRadio) GetSplitVfo() (string, bool, error)

func (*RemoteRadio) GetState

func (r *RemoteRadio) GetState() (sbRadio.State, error)

func (*RemoteRadio) GetTuningStep

func (r *RemoteRadio) GetTuningStep() (int, error)

func (*RemoteRadio) GetVfo

func (r *RemoteRadio) GetVfo() (string, error)

func (*RemoteRadio) GetXit

func (r *RemoteRadio) GetXit() (int, error)

func (*RemoteRadio) IsOnlne

func (r *RemoteRadio) IsOnlne() bool

func (*RemoteRadio) SetAntenna

func (r *RemoteRadio) SetAntenna(ant int) error

func (*RemoteRadio) SetFrequency

func (r *RemoteRadio) SetFrequency(freq float64) error

func (*RemoteRadio) SetFunction

func (r *RemoteRadio) SetFunction(function string, value bool) error

func (*RemoteRadio) SetLevel

func (r *RemoteRadio) SetLevel(level string, value float32) error

func (*RemoteRadio) SetMode

func (r *RemoteRadio) SetMode(mode string, pbWidth int) error

func (*RemoteRadio) SetOnline

func (r *RemoteRadio) SetOnline(online bool)

func (*RemoteRadio) SetParameter

func (r *RemoteRadio) SetParameter(parm string, value float32) error

func (*RemoteRadio) SetPowerstat

func (r *RemoteRadio) SetPowerstat(ps bool) error

func (*RemoteRadio) SetPtt

func (r *RemoteRadio) SetPtt(ptt bool) error

func (*RemoteRadio) SetRit

func (r *RemoteRadio) SetRit(rit int) error

func (*RemoteRadio) SetSplitFrequency

func (r *RemoteRadio) SetSplitFrequency(freq float64) error

func (*RemoteRadio) SetSplitFrequencyMode

func (r *RemoteRadio) SetSplitFrequencyMode(freq float64, mode string, pbWidth int) error

func (*RemoteRadio) SetSplitMode

func (r *RemoteRadio) SetSplitMode(mode string, pbWidth int) error

func (*RemoteRadio) SetSplitPbWidth

func (r *RemoteRadio) SetSplitPbWidth(pbWidth int) error

func (*RemoteRadio) SetSplitVfo

func (r *RemoteRadio) SetSplitVfo(vfo string, enabled bool) error

func (*RemoteRadio) SetTuningStep

func (r *RemoteRadio) SetTuningStep(ts int) error

func (*RemoteRadio) SetVfo

func (r *RemoteRadio) SetVfo(vfo string) error

func (*RemoteRadio) SetXit

func (r *RemoteRadio) SetXit(xit int) error

Jump to

Keyboard shortcuts

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