rtlsdr

package
v0.0.0-...-8c5baf1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceName = "rtl-sdr"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	RtlSdrs   map[string]*RtlSdrDev
	Heartbeat chan bool
}

func (*Plugin) Allocate

func (*Plugin) GetDevicePluginOptions

func (p *Plugin) GetDevicePluginOptions(ctx context.Context, e *pluginapi.Empty) (*pluginapi.DevicePluginOptions, error)

func (*Plugin) GetDevices

func (p *Plugin) GetDevices() []*pluginapi.Device

func (*Plugin) ListAndWatch

func (*Plugin) UpdateDevices

func (p *Plugin) UpdateDevices() error

type RtlSdrDev

type RtlSdrDev struct {
	*gousb.Device

	SerialNumber string
	Connected    bool
}

func ListDevices

func ListDevices() ([]*RtlSdrDev, error)

func NewRtlSdrDev

func NewRtlSdrDev(dev *gousb.Device) *RtlSdrDev

func (RtlSdrDev) DevicePath

func (r RtlSdrDev) DevicePath() string

Jump to

Keyboard shortcuts

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