package
0.0.0-20241221163609-ef6447f41486
Repository: https://github.com/jimorc/jsdr.git
Documentation: pkg.go.dev

# Functions

AgcIsEnabled returns whether AGC is enabled for receive channel 0 of the device.
EnableAge enables or disables the device's AGC.
EnumerateWithoutAudio returns a map of SDR devices, not including any audio device.
GetAntennaNames returns the list of RX antenna names for channel 0.
GetCurrentAntenna returns the currently selected RX antenna for channel 0 of the SDR.
GetElementGain gets the gain for the named element in the chain for RX channel 0.
GetElementGainRange retrieves the gain range for the specified device.
GetFrequencyRanges retrieves the slice of frequency ranges that the specified devices supports.
GetGainElementNames retrieves the list of gain elements for the SDR.
GetNativeStreamFormat retrieves the native format for RX channel 0 and its full scale value.
GetOverallCenterFrequency retrieves the overall center frequency in Hz for RX channel 0.
GetOverallGain gets the overall value of the gain elements in the chain for RX channel 0.
GetSampleRate returns the sample rate that most closely matches the current sample rate for the SDR.
GetSampleRates retrieves a string slice of sample rates based on the sample rate ranges for the SDR.
GetStreamFormats retrieves the stream formats for RX channel 0.
GetTunableElementFrequency retrieves the tuned frequency in Hz for the named tunable element.
GetTunableElementFrequencyRanges retrieves the freequency ranges for the specified tunable element.
GetTunableElementNames retrieves the list of tunable elements by name for the device.
Make makes a new device given construction args.
SetAntenna sets the antenna for RX channel 0 Returns nil on success, or error message on failure.
SetElementGain attempts to set the gain for the specified element to the requested value.
SetOverallCenterFrequency sets the overall center frequency for RX channel 0.
SetOverallGain sets the total overall gain of the various gain elements in the chain to the specified value in dB.
SetSampleRate sets the sample rate to the specified value.
SetTunableElementFrequency sets the frequency for the named tunable element to the specified value.
SetupCS8Stream initializes a stream for RX channel 0.
SupportsAGC returns whether the device supports AGC or not.
Unmake frees up any assets associated with the SDR device.

# Structs

Sdr represents the SDR device.
SoapyDevice provides the go-soapy-sdr interface via dependency injection.
StreamCS8 is the stream for CS8 data.
StubDevice provides a stub interface for testing the soapySDR interface.

# Interfaces

Agc interface specifies the AGC methods.
Antenna interface specifies the antenna related methods for an SDR device.
CS8Streams defines the interface for StreamCS8 streams.
Enumerate interface specifies the function for enumerating attached devices.
Frequency interface specifies the frequency methods that SDR devices must satisfy.
Gain interface specifies the gain related methods.
KeyValues interface specifies the methods for retrieving SDR information.
MakeDevice interface specifies the methods for creating and destroying an SDR device.
SampleRates interface specifies the SDR device methods related to sample rates.
Stream interface specifies stream related functionality.