|
libSDRForge
|
Define tuner control and raw IQ acquisition independent of transport. More...
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. | |
Define tuner control and raw IQ acquisition independent of transport.
| None sdrforge.interfaces.sdr_source_if.SdrSourceIf.close | ( | self | ) |
Stop acquisition and release resources owned by the SDR source.
| self | The current instance. |
Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.
| SdrCapabilities sdrforge.interfaces.sdr_source_if.SdrSourceIf.get_capabilities | ( | self | ) |
Return tuning and sampling capabilities for the source.
| self | The current instance. |
Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.
| int sdrforge.interfaces.sdr_source_if.SdrSourceIf.get_center_frequency | ( | self | ) |
Return the configured RF center frequency in hertz.
| self | The current instance. |
Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.
| int sdrforge.interfaces.sdr_source_if.SdrSourceIf.get_sample_rate | ( | self | ) |
Return the configured IQ sample rate in samples per second.
| self | The current instance. |
Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.
| bool sdrforge.interfaces.sdr_source_if.SdrSourceIf.is_connected | ( | self | ) |
Return whether the SDR source is initialized and available.
| self | The current instance. |
Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.
| None sdrforge.interfaces.sdr_source_if.SdrSourceIf.open | ( | self | ) |
Open and initialize the SDR source.
| self | The current instance. |
Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.
| IqBlock sdrforge.interfaces.sdr_source_if.SdrSourceIf.read_iq | ( | self | ) |
Block until the next IQ block is available or acquisition stops.
| self | The current instance. |
Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.
| None sdrforge.interfaces.sdr_source_if.SdrSourceIf.set_center_frequency | ( | self, | |
| int | frequency_hz ) |
Set the RF center frequency in hertz.
| self | The current instance. |
| frequency_hz | The frequency in hertz. |
Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.
| 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.
| self | The current instance. |
| gain_db | The tuner gain in decibels, or None for automatic gain. |
Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.
| None sdrforge.interfaces.sdr_source_if.SdrSourceIf.set_sample_rate | ( | self, | |
| int | sample_rate_hz ) |
Set the IQ sample rate in samples per second.
| self | The current instance. |
| sample_rate_hz | The sample rate in hertz. |
Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.
| None sdrforge.interfaces.sdr_source_if.SdrSourceIf.start | ( | self | ) |
Start IQ acquisition.
| self | The current instance. |
Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.
| None sdrforge.interfaces.sdr_source_if.SdrSourceIf.stop | ( | self | ) |
Stop IQ acquisition without closing the source.
| self | The current instance. |
Reimplemented in sdrforge.adapters.rtl_sdr.RtlSdrSource, and sdrforge.adapters.simulated_iq.SimulatedIqSource.