devices

package
v0.0.0-...-d1f57cd Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	Close() error
	IsOpen() bool
	Refresh() error
	Fields() log.Fields
	GetInfo() *Info
	GetAGC() bool
	SetAGC(enabled bool) error
	GetAutoGain() bool
	SetAutoGain(enabled bool) error
	GetTunerGain() float32
	SetTunerGain(gain float32) error
	GetFrequencyCorrection() int
	SetFrequencyCorrection(ppm int) error
	Reset() error
	GetCenterFrequency() units.Hertz
	SetCenterFrequency(centerFrequency units.Hertz) error
	GetSampleRate() units.Sps
	SetSampleRate(sps units.Sps) error
	SampleBufferSize() units.Sps
	RunSampler(handler func(samples []byte)) error
	StopSampling() error
	GetFrequencyBounds() (lower units.Hertz, upper units.Hertz)
	GetBuffersPerSecond() int
}

type DeviceType

type DeviceType int
const (
	RTLSDR DeviceType = iota
)

func (DeviceType) String

func (dt DeviceType) String() string

type Id

type Id struct {
	Type   DeviceType
	Serial string
}

func (Id) Fields

func (i Id) Fields() logrus.Fields

type Info

type Info struct {
	Type         DeviceType
	Index        int
	Manufacturer string
	ProductName  string
	Serial       string
}

func (*Info) Equals

func (di *Info) Equals(other *Info) bool

func (*Info) Fields

func (di *Info) Fields() logrus.Fields

func (*Info) Id

func (di *Info) Id() Id

func (*Info) String

func (di *Info) String() string

func (*Info) Valid

func (di *Info) Valid() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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