Frontend

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2019 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const CFileFrontendBufferSize = 65535
View Source
const LimeFrontendBufferSize = 8192
View Source
const SampleTypeFloatIQ = 0
View Source
const SampleTypeS16IQ = 1
View Source
const SampleTypeS8IQ = 2

Variables

This section is empty.

Functions

func AirspyDeinitialize

func AirspyDeinitialize()

func AirspyInitialize

func AirspyInitialize()

func LimeMakeGoCallbackDirector

func LimeMakeGoCallbackDirector(callback *GoCallback) LimeDevice.LimeDeviceCallback

func MakeAirspyGoCallbackDirector

func MakeAirspyGoCallbackDirector(callback *GoCallback) AirspyDevice.AirspyDeviceCallback

func MakeRTLSDRGoCallbackDirector

func MakeRTLSDRGoCallbackDirector(callback *GoCallback) RTLSDRDevice.RTLSDRDeviceCallback

Types

type AirspyFrontend

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

region Struct Definition

func NewAirspyFrontend

func NewAirspyFrontend() *AirspyFrontend

endregion region Constructor

func (*AirspyFrontend) Destroy

func (f *AirspyFrontend) Destroy()

func (*AirspyFrontend) GetAvailableSampleRates

func (f *AirspyFrontend) GetAvailableSampleRates() []uint32

func (*AirspyFrontend) GetCenterFrequency

func (f *AirspyFrontend) GetCenterFrequency() uint32

func (*AirspyFrontend) GetName

func (f *AirspyFrontend) GetName() string

endregion region Getters

func (*AirspyFrontend) GetSampleRate

func (f *AirspyFrontend) GetSampleRate() uint32

func (*AirspyFrontend) GetShortName

func (f *AirspyFrontend) GetShortName() string

func (*AirspyFrontend) Init

func (f *AirspyFrontend) Init() bool

func (*AirspyFrontend) SetAGC

func (f *AirspyFrontend) SetAGC(agc bool)

func (*AirspyFrontend) SetAntenna

func (f *AirspyFrontend) SetAntenna(string)

func (*AirspyFrontend) SetBiasT

func (f *AirspyFrontend) SetBiasT(biast bool)

func (*AirspyFrontend) SetCenterFrequency

func (f *AirspyFrontend) SetCenterFrequency(centerFrequency uint32) uint32

func (*AirspyFrontend) SetGain1

func (f *AirspyFrontend) SetGain1(gain uint8)

func (*AirspyFrontend) SetGain2

func (f *AirspyFrontend) SetGain2(gain uint8)

func (*AirspyFrontend) SetGain3

func (f *AirspyFrontend) SetGain3(gain uint8)

func (*AirspyFrontend) SetSampleRate

func (f *AirspyFrontend) SetSampleRate(sampleRate uint32) uint32

func (*AirspyFrontend) SetSamplesAvailableCallback

func (f *AirspyFrontend) SetSamplesAvailableCallback(cb SamplesCallback)

endregion region Setters

func (*AirspyFrontend) Start

func (f *AirspyFrontend) Start()

endregion region Commands

func (*AirspyFrontend) Stop

func (f *AirspyFrontend) Stop()

type BaseFrontend

type BaseFrontend interface {
	SetSampleRate(sampleRate uint32) uint32
	SetCenterFrequency(centerFrequency uint32) uint32
	GetAvailableSampleRates() []uint32
	Start()
	Stop()
	SetAntenna(value string)
	SetAGC(agc bool)
	SetGain1(value uint8)
	SetGain2(value uint8)
	SetGain3(value uint8)
	SetBiasT(value bool)
	GetCenterFrequency() uint32
	GetName() string
	GetShortName() string
	GetSampleRate() uint32
	SetSamplesAvailableCallback(cb SamplesCallback)
	Init() bool
	Destroy()
}

type CFileFrontend

type CFileFrontend struct {
	sync.Mutex
	// contains filtered or unexported fields
}

region Struct Definition

func NewCFileFrontend

func NewCFileFrontend(filename string) *CFileFrontend

endregion region Constructor

func (*CFileFrontend) Destroy

func (f *CFileFrontend) Destroy()

func (*CFileFrontend) EnableFastAsPossible

func (f *CFileFrontend) EnableFastAsPossible()

func (*CFileFrontend) GetAvailableSampleRates

func (f *CFileFrontend) GetAvailableSampleRates() []uint32

func (*CFileFrontend) GetCenterFrequency

func (f *CFileFrontend) GetCenterFrequency() uint32

func (*CFileFrontend) GetName

func (f *CFileFrontend) GetName() string

endregion region Getters

func (*CFileFrontend) GetSampleRate

func (f *CFileFrontend) GetSampleRate() uint32

func (*CFileFrontend) GetShortName

func (f *CFileFrontend) GetShortName() string

func (*CFileFrontend) Init

func (f *CFileFrontend) Init() bool

endregion region Commands

func (*CFileFrontend) SetAGC

func (f *CFileFrontend) SetAGC(bool)

func (*CFileFrontend) SetAntenna

func (f *CFileFrontend) SetAntenna(string)

func (*CFileFrontend) SetBiasT

func (f *CFileFrontend) SetBiasT(bool)

func (*CFileFrontend) SetCenterFrequency

func (f *CFileFrontend) SetCenterFrequency(centerFrequency uint32) uint32

func (*CFileFrontend) SetGain1

func (f *CFileFrontend) SetGain1(uint8)

func (*CFileFrontend) SetGain2

func (f *CFileFrontend) SetGain2(uint8)

func (*CFileFrontend) SetGain3

func (f *CFileFrontend) SetGain3(uint8)

func (*CFileFrontend) SetSampleRate

func (f *CFileFrontend) SetSampleRate(sampleRate uint32) uint32

func (*CFileFrontend) SetSamplesAvailableCallback

func (f *CFileFrontend) SetSamplesAvailableCallback(cb SamplesCallback)

endregion region Setters

func (*CFileFrontend) Start

func (f *CFileFrontend) Start()

func (*CFileFrontend) Stop

func (f *CFileFrontend) Stop()

type GoCallback

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

func NewGoCallback

func NewGoCallback() GoCallback

func (*GoCallback) CbFloatIQ

func (p *GoCallback) CbFloatIQ(data uintptr, length int)

func (*GoCallback) CbS8IQ

func (p *GoCallback) CbS8IQ(data uintptr, length int)

func (*GoCallback) CbS16IQ

func (p *GoCallback) CbS16IQ(data uintptr, length int)

func (*GoCallback) Debug

func (p *GoCallback) Debug(str string)

func (*GoCallback) Error

func (p *GoCallback) Error(str string)

func (*GoCallback) Info

func (p *GoCallback) Info(str string)

func (*GoCallback) Warn

func (p *GoCallback) Warn(str string)

type LimeDrvFrontend

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

region Struct Definition

func NewLimeDrvFrontend

func NewLimeDrvFrontend() *LimeDrvFrontend

endregion region Constructor

func (*LimeDrvFrontend) Destroy

func (f *LimeDrvFrontend) Destroy()

func (*LimeDrvFrontend) GetAvailableSampleRates

func (f *LimeDrvFrontend) GetAvailableSampleRates() []uint32

func (*LimeDrvFrontend) GetCenterFrequency

func (f *LimeDrvFrontend) GetCenterFrequency() uint32

func (*LimeDrvFrontend) GetName

func (f *LimeDrvFrontend) GetName() string

endregion region Getters

func (*LimeDrvFrontend) GetSampleRate

func (f *LimeDrvFrontend) GetSampleRate() uint32

func (*LimeDrvFrontend) GetShortName

func (f *LimeDrvFrontend) GetShortName() string

func (*LimeDrvFrontend) GetTemperature

func (f *LimeDrvFrontend) GetTemperature() float64

func (*LimeDrvFrontend) Init

func (f *LimeDrvFrontend) Init() (ret bool)

func (*LimeDrvFrontend) SetAGC

func (f *LimeDrvFrontend) SetAGC(agc bool)

func (*LimeDrvFrontend) SetAntenna

func (f *LimeDrvFrontend) SetAntenna(value string)

func (*LimeDrvFrontend) SetBiasT

func (f *LimeDrvFrontend) SetBiasT(biast bool)

func (*LimeDrvFrontend) SetCenterFrequency

func (f *LimeDrvFrontend) SetCenterFrequency(centerFrequency uint32) uint32

func (*LimeDrvFrontend) SetChannel

func (f *LimeDrvFrontend) SetChannel(value int)

func (*LimeDrvFrontend) SetGain1

func (f *LimeDrvFrontend) SetGain1(gain uint8)

func (*LimeDrvFrontend) SetGain2

func (f *LimeDrvFrontend) SetGain2(gain uint8)

func (*LimeDrvFrontend) SetGain3

func (f *LimeDrvFrontend) SetGain3(gain uint8)

func (*LimeDrvFrontend) SetOversample

func (f *LimeDrvFrontend) SetOversample(oversample int)

func (*LimeDrvFrontend) SetSampleRate

func (f *LimeDrvFrontend) SetSampleRate(sampleRate uint32) uint32

func (*LimeDrvFrontend) SetSamplesAvailableCallback

func (f *LimeDrvFrontend) SetSamplesAvailableCallback(cb SamplesCallback)

endregion region Setters

func (*LimeDrvFrontend) Start

func (f *LimeDrvFrontend) Start()

endregion region Commands

func (*LimeDrvFrontend) Stop

func (f *LimeDrvFrontend) Stop()

type LimeFrontend

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

region Struct Definition

func NewLimeFrontend

func NewLimeFrontend() *LimeFrontend

endregion region Constructor

func (*LimeFrontend) Destroy

func (f *LimeFrontend) Destroy()

func (*LimeFrontend) GetAvailableSampleRates

func (f *LimeFrontend) GetAvailableSampleRates() []uint32

func (*LimeFrontend) GetCenterFrequency

func (f *LimeFrontend) GetCenterFrequency() uint32

func (*LimeFrontend) GetName

func (f *LimeFrontend) GetName() string

endregion region Getters

func (*LimeFrontend) GetSampleRate

func (f *LimeFrontend) GetSampleRate() uint32

func (*LimeFrontend) GetShortName

func (f *LimeFrontend) GetShortName() string

func (*LimeFrontend) Init

func (f *LimeFrontend) Init() bool

func (*LimeFrontend) SetAGC

func (f *LimeFrontend) SetAGC(agc bool)

func (*LimeFrontend) SetAntenna

func (f *LimeFrontend) SetAntenna(value string)

func (*LimeFrontend) SetBiasT

func (f *LimeFrontend) SetBiasT(biast bool)

func (*LimeFrontend) SetCenterFrequency

func (f *LimeFrontend) SetCenterFrequency(centerFrequency uint32) uint32

func (*LimeFrontend) SetGain1

func (f *LimeFrontend) SetGain1(gain uint8)

func (*LimeFrontend) SetGain2

func (f *LimeFrontend) SetGain2(gain uint8)

func (*LimeFrontend) SetGain3

func (f *LimeFrontend) SetGain3(gain uint8)

func (*LimeFrontend) SetSampleRate

func (f *LimeFrontend) SetSampleRate(sampleRate uint32) uint32

func (*LimeFrontend) SetSamplesAvailableCallback

func (f *LimeFrontend) SetSamplesAvailableCallback(cb SamplesCallback)

endregion region Setters

func (*LimeFrontend) Start

func (f *LimeFrontend) Start()

endregion region Commands

func (*LimeFrontend) Stop

func (f *LimeFrontend) Stop()

type RTLSDRFrontend

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

region Struct Definition

func NewRTLSDRFrontend

func NewRTLSDRFrontend() *RTLSDRFrontend

endregion region Constructor

func (*RTLSDRFrontend) Destroy

func (f *RTLSDRFrontend) Destroy()

func (*RTLSDRFrontend) GetAvailableSampleRates

func (f *RTLSDRFrontend) GetAvailableSampleRates() []uint32

func (*RTLSDRFrontend) GetCenterFrequency

func (f *RTLSDRFrontend) GetCenterFrequency() uint32

func (*RTLSDRFrontend) GetName

func (f *RTLSDRFrontend) GetName() string

endregion region Getters

func (*RTLSDRFrontend) GetSampleRate

func (f *RTLSDRFrontend) GetSampleRate() uint32

func (*RTLSDRFrontend) GetShortName

func (f *RTLSDRFrontend) GetShortName() string

func (*RTLSDRFrontend) Init

func (f *RTLSDRFrontend) Init() bool

func (*RTLSDRFrontend) SetAGC

func (f *RTLSDRFrontend) SetAGC(agc bool)

func (*RTLSDRFrontend) SetAntenna

func (f *RTLSDRFrontend) SetAntenna(string)

func (*RTLSDRFrontend) SetBiasT

func (f *RTLSDRFrontend) SetBiasT(biast bool)

func (*RTLSDRFrontend) SetCenterFrequency

func (f *RTLSDRFrontend) SetCenterFrequency(centerFrequency uint32) uint32

func (*RTLSDRFrontend) SetGain1

func (f *RTLSDRFrontend) SetGain1(gain uint8)

func (*RTLSDRFrontend) SetGain2

func (f *RTLSDRFrontend) SetGain2(gain uint8)

func (*RTLSDRFrontend) SetGain3

func (f *RTLSDRFrontend) SetGain3(gain uint8)

func (*RTLSDRFrontend) SetSampleRate

func (f *RTLSDRFrontend) SetSampleRate(sampleRate uint32) uint32

func (*RTLSDRFrontend) SetSamplesAvailableCallback

func (f *RTLSDRFrontend) SetSamplesAvailableCallback(cb SamplesCallback)

endregion region Setters

func (*RTLSDRFrontend) Start

func (f *RTLSDRFrontend) Start()

endregion region Commands

func (*RTLSDRFrontend) Stop

func (f *RTLSDRFrontend) Stop()

type SampleCallbackData

type SampleCallbackData struct {
	ComplexArray []complex64
	Int16Array   []int16
	Int8Array    []int8
	SampleType   int
	NumSamples   int
}

type SamplesCallback

type SamplesCallback func(data SampleCallbackData)

type SpyserverFrontend

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

region Struct Definition

func NewSpyserverFrontend

func NewSpyserverFrontend(hostname string, port int) *SpyserverFrontend

endregion region Constructor

func (*SpyserverFrontend) Destroy

func (f *SpyserverFrontend) Destroy()

func (*SpyserverFrontend) GetAvailableSampleRates

func (f *SpyserverFrontend) GetAvailableSampleRates() []uint32

func (*SpyserverFrontend) GetCenterFrequency

func (f *SpyserverFrontend) GetCenterFrequency() uint32

func (*SpyserverFrontend) GetName

func (f *SpyserverFrontend) GetName() string

endregion region Getters

func (*SpyserverFrontend) GetSampleRate

func (f *SpyserverFrontend) GetSampleRate() uint32

func (*SpyserverFrontend) GetShortName

func (f *SpyserverFrontend) GetShortName() string

func (*SpyserverFrontend) Init

func (f *SpyserverFrontend) Init() bool

func (*SpyserverFrontend) OnData

func (f *SpyserverFrontend) OnData(dType int, data interface{})

func (*SpyserverFrontend) SetAGC

func (f *SpyserverFrontend) SetAGC(agc bool)

func (*SpyserverFrontend) SetAntenna

func (f *SpyserverFrontend) SetAntenna(string)

func (*SpyserverFrontend) SetBiasT

func (f *SpyserverFrontend) SetBiasT(biast bool)

func (*SpyserverFrontend) SetCenterFrequency

func (f *SpyserverFrontend) SetCenterFrequency(centerFrequency uint32) uint32

func (*SpyserverFrontend) SetGain1

func (f *SpyserverFrontend) SetGain1(gain uint8)

func (*SpyserverFrontend) SetGain2

func (f *SpyserverFrontend) SetGain2(gain uint8)

func (*SpyserverFrontend) SetGain3

func (f *SpyserverFrontend) SetGain3(gain uint8)

func (*SpyserverFrontend) SetSampleRate

func (f *SpyserverFrontend) SetSampleRate(sampleRate uint32) uint32

func (*SpyserverFrontend) SetSamplesAvailableCallback

func (f *SpyserverFrontend) SetSamplesAvailableCallback(cb SamplesCallback)

endregion region Setters

func (*SpyserverFrontend) Start

func (f *SpyserverFrontend) Start()

endregion region Commands

func (*SpyserverFrontend) Stop

func (f *SpyserverFrontend) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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