|
libSDRForge
|
Provide simulated iq source behavior. More...
Public Member Functions | |
| None | __init__ (self, *, int block_samples=24_000) |
| Initialize the instance. | |
| None | open (self) |
| Open the component. | |
| None | close (self) |
| Close the component. | |
| bool | is_connected (self) |
| Return whether the connected. | |
| SdrCapabilities | get_capabilities (self) |
| Return the capabilities. | |
| None | set_center_frequency (self, int frequency_hz) |
| Set the center frequency. | |
| int | get_center_frequency (self) |
| Return the center frequency. | |
| int | get_sample_rate (self) |
| Return the sample rate. | |
| None | set_sample_rate (self, int sample_rate_hz) |
| Set the sample rate. | |
| None | set_gain (self, float|None gain_db) |
| Set the gain. | |
| None | start (self) |
| Start the component. | |
| None | stop (self) |
| Stop the component. | |
| IqBlock | read_iq (self) |
| Read iq. | |
Public Attributes | |
| block_samples = block_samples | |
| int | frequency_hz = 104_300_000 |
| int | sample_rate_hz = 2_400_000 |
Protected Attributes | |
| bool | _open = False |
| bool | _running = False |
| int | _sample_index = 0 |
| float | _next_read = 0.0 |
Provide simulated iq source behavior.
| None sdrforge.adapters.simulated_iq.SimulatedIqSource.__init__ | ( | self, | |
| * | , | ||
| int | block_samples = 24_000 ) |
Initialize the instance.
| self | The current instance. |
| block_samples | The block_samples value. |
| None sdrforge.adapters.simulated_iq.SimulatedIqSource.close | ( | self | ) |
Close the component.
| self | The current instance. |
Reimplemented from sdrforge.interfaces.sdr_source_if.SdrSourceIf.
| SdrCapabilities sdrforge.adapters.simulated_iq.SimulatedIqSource.get_capabilities | ( | self | ) |
Return the capabilities.
| self | The current instance. |
Reimplemented from sdrforge.interfaces.sdr_source_if.SdrSourceIf.
| int sdrforge.adapters.simulated_iq.SimulatedIqSource.get_center_frequency | ( | self | ) |
Return the center frequency.
| self | The current instance. |
Reimplemented from sdrforge.interfaces.sdr_source_if.SdrSourceIf.
| int sdrforge.adapters.simulated_iq.SimulatedIqSource.get_sample_rate | ( | self | ) |
Return the sample rate.
| self | The current instance. |
Reimplemented from sdrforge.interfaces.sdr_source_if.SdrSourceIf.
| bool sdrforge.adapters.simulated_iq.SimulatedIqSource.is_connected | ( | self | ) |
Return whether the connected.
| self | The current instance. |
Reimplemented from sdrforge.interfaces.sdr_source_if.SdrSourceIf.
| None sdrforge.adapters.simulated_iq.SimulatedIqSource.open | ( | self | ) |
Open the component.
| self | The current instance. |
Reimplemented from sdrforge.interfaces.sdr_source_if.SdrSourceIf.
| IqBlock sdrforge.adapters.simulated_iq.SimulatedIqSource.read_iq | ( | self | ) |
Read iq.
| self | The current instance. |
Reimplemented from sdrforge.interfaces.sdr_source_if.SdrSourceIf.
| None sdrforge.adapters.simulated_iq.SimulatedIqSource.set_center_frequency | ( | self, | |
| int | frequency_hz ) |
Set the center frequency.
| self | The current instance. |
| frequency_hz | The frequency in hertz. |
Reimplemented from sdrforge.interfaces.sdr_source_if.SdrSourceIf.
| None sdrforge.adapters.simulated_iq.SimulatedIqSource.set_gain | ( | self, | |
| float | None | gain_db ) |
Set the gain.
| self | The current instance. |
| gain_db | The tuner gain in decibels, or None for automatic gain. |
Reimplemented from sdrforge.interfaces.sdr_source_if.SdrSourceIf.
| None sdrforge.adapters.simulated_iq.SimulatedIqSource.set_sample_rate | ( | self, | |
| int | sample_rate_hz ) |
Set the sample rate.
| self | The current instance. |
| sample_rate_hz | The sample rate in hertz. |
Reimplemented from sdrforge.interfaces.sdr_source_if.SdrSourceIf.
| None sdrforge.adapters.simulated_iq.SimulatedIqSource.start | ( | self | ) |
Start the component.
| self | The current instance. |
Reimplemented from sdrforge.interfaces.sdr_source_if.SdrSourceIf.
| None sdrforge.adapters.simulated_iq.SimulatedIqSource.stop | ( | self | ) |
Stop the component.
| self | The current instance. |
Reimplemented from sdrforge.interfaces.sdr_source_if.SdrSourceIf.
|
protected |
|
protected |
|
protected |
|
protected |
| sdrforge.adapters.simulated_iq.SimulatedIqSource.block_samples = block_samples |
| int sdrforge.adapters.simulated_iq.SimulatedIqSource.frequency_hz = 104_300_000 |
| int sdrforge.adapters.simulated_iq.SimulatedIqSource.sample_rate_hz = 2_400_000 |