vfo

package
v0.22.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Notify(any)
	Active() bool
	Refresh()
	SetFrequency(core.Frequency)
	SetBand(core.Band)
	SetMode(core.Mode)
	SetXIT(bool, core.Frequency)
}

type Logbook

type Logbook interface {
	LastBand() core.Band
	LastMode() core.Mode
}

type VFO

type VFO struct {
	XITControl

	Name string
	// contains filtered or unexported fields
}

func NewVFO

func NewVFO(name string, bandplan bandplan.Bandplan, asyncRunner core.AsyncRunner) *VFO

func (*VFO) Notify

func (v *VFO) Notify(listener any)

func (*VFO) Refresh

func (v *VFO) Refresh()

func (*VFO) SetBand

func (v *VFO) SetBand(band core.Band)

func (*VFO) SetClient

func (v *VFO) SetClient(client Client)

func (*VFO) SetFrequency

func (v *VFO) SetFrequency(frequency core.Frequency)

func (*VFO) SetLogbook

func (v *VFO) SetLogbook(logbook Logbook)

func (*VFO) SetMode

func (v *VFO) SetMode(mode core.Mode)

func (*VFO) SetXIT added in v0.22.2

func (v *VFO) SetXIT(active bool, offset core.Frequency)

func (*VFO) VFOBandChanged

func (v *VFO) VFOBandChanged(band core.Band)

func (*VFO) VFOFrequencyChanged

func (v *VFO) VFOFrequencyChanged(frequency core.Frequency)

func (*VFO) VFOModeChanged

func (v *VFO) VFOModeChanged(mode core.Mode)

func (*VFO) VFOPTTChanged added in v0.22.4

func (v *VFO) VFOPTTChanged(active bool)

func (*VFO) VFOXITChanged added in v0.22.2

func (v *VFO) VFOXITChanged(active bool, offset core.Frequency)

type XITActiveListener added in v0.22.2

type XITActiveListener interface {
	XITActiveChanged(active bool)
}

type XITControl added in v0.22.2

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

func (*XITControl) SetXITActive added in v0.22.2

func (x *XITControl) SetXITActive(active bool)

func (*XITControl) VFOXITChanged added in v0.22.2

func (x *XITControl) VFOXITChanged(active bool, offset core.Frequency)

func (*XITControl) WorkmodeChanged added in v0.22.2

func (x *XITControl) WorkmodeChanged(workmode core.Workmode)

func (*XITControl) XITActive added in v0.22.2

func (x *XITControl) XITActive() bool

Jump to

Keyboard shortcuts

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