Documentation ¶
Index ¶
- Constants
- func AirspyDeinitialize()
- func AirspyInitialize()
- func MakeAirspyGoCallbackDirector(callback *GoCallback) AirspyDevice.AirspyDeviceCallback
- func MakeRTLSDRGoCallbackDirector(callback *GoCallback) RTLSDRDevice.RTLSDRDeviceCallback
- type AirspyFrontend
- func (f *AirspyFrontend) Destroy()
- func (f *AirspyFrontend) GetAvailableSampleRates() []uint32
- func (f *AirspyFrontend) GetCenterFrequency() uint32
- func (f *AirspyFrontend) GetName() string
- func (f *AirspyFrontend) GetSampleRate() uint32
- func (f *AirspyFrontend) GetShortName() string
- func (f *AirspyFrontend) Init() bool
- func (f *AirspyFrontend) SetAGC(agc bool)
- func (f *AirspyFrontend) SetAntenna(string)
- func (f *AirspyFrontend) SetBiasT(biast bool)
- func (f *AirspyFrontend) SetCenterFrequency(centerFrequency uint32) uint32
- func (f *AirspyFrontend) SetGain1(gain uint8)
- func (f *AirspyFrontend) SetGain2(gain uint8)
- func (f *AirspyFrontend) SetGain3(gain uint8)
- func (f *AirspyFrontend) SetSampleRate(sampleRate uint32) uint32
- func (f *AirspyFrontend) SetSamplesAvailableCallback(cb SamplesCallback)
- func (f *AirspyFrontend) Start()
- func (f *AirspyFrontend) Stop()
- type BaseFrontend
- type CFileFrontend
- func (f *CFileFrontend) Destroy()
- func (f *CFileFrontend) EnableFastAsPossible()
- func (f *CFileFrontend) GetAvailableSampleRates() []uint32
- func (f *CFileFrontend) GetCenterFrequency() uint32
- func (f *CFileFrontend) GetName() string
- func (f *CFileFrontend) GetSampleRate() uint32
- func (f *CFileFrontend) GetShortName() string
- func (f *CFileFrontend) Init() bool
- func (f *CFileFrontend) SetAGC(bool)
- func (f *CFileFrontend) SetAntenna(string)
- func (f *CFileFrontend) SetBiasT(bool)
- func (f *CFileFrontend) SetCenterFrequency(centerFrequency uint32) uint32
- func (f *CFileFrontend) SetGain1(uint8)
- func (f *CFileFrontend) SetGain2(uint8)
- func (f *CFileFrontend) SetGain3(uint8)
- func (f *CFileFrontend) SetSampleRate(sampleRate uint32) uint32
- func (f *CFileFrontend) SetSamplesAvailableCallback(cb SamplesCallback)
- func (f *CFileFrontend) Start()
- func (f *CFileFrontend) Stop()
- type GoCallback
- func (p *GoCallback) CbFloatIQ(data uintptr, length int)
- func (p *GoCallback) CbS16IQ(data uintptr, length int)
- func (p *GoCallback) CbS8IQ(data uintptr, length int)
- func (p *GoCallback) Debug(str string)
- func (p *GoCallback) Error(str string)
- func (p *GoCallback) Info(str string)
- func (p *GoCallback) Warn(str string)
- type LimeDrvFrontend
- func (f *LimeDrvFrontend) Destroy()
- func (f *LimeDrvFrontend) GetAvailableSampleRates() []uint32
- func (f *LimeDrvFrontend) GetCenterFrequency() uint32
- func (f *LimeDrvFrontend) GetName() string
- func (f *LimeDrvFrontend) GetSampleRate() uint32
- func (f *LimeDrvFrontend) GetShortName() string
- func (f *LimeDrvFrontend) GetTemperature() float64
- func (f *LimeDrvFrontend) Init() (ret bool)
- func (f *LimeDrvFrontend) SetAGC(agc bool)
- func (f *LimeDrvFrontend) SetAntenna(value string)
- func (f *LimeDrvFrontend) SetBiasT(biast bool)
- func (f *LimeDrvFrontend) SetCenterFrequency(centerFrequency uint32) uint32
- func (f *LimeDrvFrontend) SetChannel(value int)
- func (f *LimeDrvFrontend) SetGain1(gain uint8)
- func (f *LimeDrvFrontend) SetGain2(gain uint8)
- func (f *LimeDrvFrontend) SetGain3(gain uint8)
- func (f *LimeDrvFrontend) SetOversample(oversample int)
- func (f *LimeDrvFrontend) SetSampleRate(sampleRate uint32) uint32
- func (f *LimeDrvFrontend) SetSamplesAvailableCallback(cb SamplesCallback)
- func (f *LimeDrvFrontend) Start()
- func (f *LimeDrvFrontend) Stop()
- type RTLSDRFrontend
- func (f *RTLSDRFrontend) Destroy()
- func (f *RTLSDRFrontend) GetAvailableSampleRates() []uint32
- func (f *RTLSDRFrontend) GetCenterFrequency() uint32
- func (f *RTLSDRFrontend) GetName() string
- func (f *RTLSDRFrontend) GetSampleRate() uint32
- func (f *RTLSDRFrontend) GetShortName() string
- func (f *RTLSDRFrontend) Init() bool
- func (f *RTLSDRFrontend) SetAGC(agc bool)
- func (f *RTLSDRFrontend) SetAntenna(string)
- func (f *RTLSDRFrontend) SetBiasT(biast bool)
- func (f *RTLSDRFrontend) SetCenterFrequency(centerFrequency uint32) uint32
- func (f *RTLSDRFrontend) SetGain1(gain uint8)
- func (f *RTLSDRFrontend) SetGain2(gain uint8)
- func (f *RTLSDRFrontend) SetGain3(gain uint8)
- func (f *RTLSDRFrontend) SetSampleRate(sampleRate uint32) uint32
- func (f *RTLSDRFrontend) SetSamplesAvailableCallback(cb SamplesCallback)
- func (f *RTLSDRFrontend) Start()
- func (f *RTLSDRFrontend) Stop()
- type SampleCallbackData
- type SamplesCallback
- type SpyserverFrontend
- func (f *SpyserverFrontend) Destroy()
- func (f *SpyserverFrontend) GetAvailableSampleRates() []uint32
- func (f *SpyserverFrontend) GetCenterFrequency() uint32
- func (f *SpyserverFrontend) GetName() string
- func (f *SpyserverFrontend) GetSampleRate() uint32
- func (f *SpyserverFrontend) GetShortName() string
- func (f *SpyserverFrontend) Init() bool
- func (f *SpyserverFrontend) OnData(dType int, data interface{})
- func (f *SpyserverFrontend) SetAGC(agc bool)
- func (f *SpyserverFrontend) SetAntenna(string)
- func (f *SpyserverFrontend) SetBiasT(biast bool)
- func (f *SpyserverFrontend) SetCenterFrequency(centerFrequency uint32) uint32
- func (f *SpyserverFrontend) SetGain1(gain uint8)
- func (f *SpyserverFrontend) SetGain2(gain uint8)
- func (f *SpyserverFrontend) SetGain3(gain uint8)
- func (f *SpyserverFrontend) SetSampleRate(sampleRate uint32) uint32
- func (f *SpyserverFrontend) SetSamplesAvailableCallback(cb SamplesCallback)
- func (f *SpyserverFrontend) Start()
- func (f *SpyserverFrontend) Stop()
Constants ¶
View Source
const CFileFrontendBufferSize = 65535
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 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 (*AirspyFrontend) Destroy ¶
func (f *AirspyFrontend) Destroy()
func (*AirspyFrontend) GetAvailableSampleRates ¶
func (f *AirspyFrontend) GetAvailableSampleRates() []uint32
func (*AirspyFrontend) GetCenterFrequency ¶
func (f *AirspyFrontend) GetCenterFrequency() uint32
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) 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 ¶
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) GetSampleRate ¶
func (f *CFileFrontend) GetSampleRate() uint32
func (*CFileFrontend) GetShortName ¶
func (f *CFileFrontend) GetShortName() string
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) CbS16IQ ¶
func (p *GoCallback) CbS16IQ(data uintptr, length int)
func (*GoCallback) CbS8IQ ¶
func (p *GoCallback) CbS8IQ(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 (*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) Stop ¶
func (f *LimeDrvFrontend) Stop()
type RTLSDRFrontend ¶
type RTLSDRFrontend struct {
// contains filtered or unexported fields
}
region Struct Definition
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) 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) Stop ¶
func (f *RTLSDRFrontend) Stop()
type SampleCallbackData ¶
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) Stop ¶
func (f *SpyserverFrontend) Stop()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.