libSDRForge
Loading...
Searching...
No Matches
sdrforge.interfaces.sdr_source_if.SdrSourceIf Class Reference

Define tuner control and raw IQ acquisition independent of transport. More...

Inheritance diagram for sdrforge.interfaces.sdr_source_if.SdrSourceIf:
sdrforge.adapters.rtl_sdr.RtlSdrSource sdrforge.adapters.simulated_iq.SimulatedIqSource

Public Member Functions

None open (self)
 Open and initialize the SDR source.
None close (self)
 Stop acquisition and release resources owned by the SDR source.
bool is_connected (self)
 Return whether the SDR source is initialized and available.
SdrCapabilities get_capabilities (self)
 Return tuning and sampling capabilities for the source.
None set_center_frequency (self, int frequency_hz)
 Set the RF center frequency in hertz.
int get_center_frequency (self)
 Return the configured RF center frequency in hertz.
None set_sample_rate (self, int sample_rate_hz)
 Set the IQ sample rate in samples per second.
int get_sample_rate (self)
 Return the configured IQ sample rate in samples per second.
None set_gain (self, float|None gain_db)
 Set tuner gain in decibels, or use automatic gain when None.
None start (self)
 Start IQ acquisition.
None stop (self)
 Stop IQ acquisition without closing the source.
IqBlock read_iq (self)
 Block until the next IQ block is available or acquisition stops.

Detailed Description

Define tuner control and raw IQ acquisition independent of transport.

Member Function Documentation

◆ close()

None sdrforge.interfaces.sdr_source_if.SdrSourceIf.close ( self)

Stop acquisition and release resources owned by the SDR source.

Parameters
selfThe current instance.

Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.

◆ get_capabilities()

SdrCapabilities sdrforge.interfaces.sdr_source_if.SdrSourceIf.get_capabilities ( self)

Return tuning and sampling capabilities for the source.

Parameters
selfThe current instance.
Returns
The operation result.

Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.

◆ get_center_frequency()

int sdrforge.interfaces.sdr_source_if.SdrSourceIf.get_center_frequency ( self)

Return the configured RF center frequency in hertz.

Parameters
selfThe current instance.
Returns
The operation result.

Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.

◆ get_sample_rate()

int sdrforge.interfaces.sdr_source_if.SdrSourceIf.get_sample_rate ( self)

Return the configured IQ sample rate in samples per second.

Parameters
selfThe current instance.
Returns
The operation result.

Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.

◆ is_connected()

bool sdrforge.interfaces.sdr_source_if.SdrSourceIf.is_connected ( self)

Return whether the SDR source is initialized and available.

Parameters
selfThe current instance.
Returns
The operation result.

Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.

◆ open()

None sdrforge.interfaces.sdr_source_if.SdrSourceIf.open ( self)

Open and initialize the SDR source.

Parameters
selfThe current instance.

Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.

◆ read_iq()

IqBlock sdrforge.interfaces.sdr_source_if.SdrSourceIf.read_iq ( self)

Block until the next IQ block is available or acquisition stops.

Parameters
selfThe current instance.
Returns
The operation result.

Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.

◆ set_center_frequency()

None sdrforge.interfaces.sdr_source_if.SdrSourceIf.set_center_frequency ( self,
int frequency_hz )

Set the RF center frequency in hertz.

Parameters
selfThe current instance.
frequency_hzThe frequency in hertz.

Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.

◆ set_gain()

None sdrforge.interfaces.sdr_source_if.SdrSourceIf.set_gain ( self,
float | None gain_db )

Set tuner gain in decibels, or use automatic gain when None.

Parameters
selfThe current instance.
gain_dbThe tuner gain in decibels, or None for automatic gain.

Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.

◆ set_sample_rate()

None sdrforge.interfaces.sdr_source_if.SdrSourceIf.set_sample_rate ( self,
int sample_rate_hz )

Set the IQ sample rate in samples per second.

Parameters
selfThe current instance.
sample_rate_hzThe sample rate in hertz.

Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.

◆ start()

None sdrforge.interfaces.sdr_source_if.SdrSourceIf.start ( self)

Start IQ acquisition.

Parameters
selfThe current instance.

Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.

◆ stop()

None sdrforge.interfaces.sdr_source_if.SdrSourceIf.stop ( self)

Stop IQ acquisition without closing the source.

Parameters
selfThe current instance.

Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.


The documentation for this class was generated from the following file: