Provide simulated receiver behavior.
More...
|
| None | __init__ (self, int frequency_hz=104_300_000) |
| | Initialize the instance.
|
| None | start (self) |
| | Start the component.
|
| None | stop (self) |
| | Stop the component.
|
| None | set_frequency (self, int hz) |
| | Set the frequency.
|
| int | get_frequency (self) |
| | Return the frequency.
|
| None | set_mode (self, str mode, int bandwidth) |
| | Set the mode.
|
| tuple[str, int] | get_mode (self) |
| | Return the mode.
|
| float|None | get_signal_strength (self) |
| | Return the signal strength.
|
| float|None | get_snr (self) |
| | Return the snr.
|
| str|None | get_rds (self) |
| | Return the rds.
|
| dict[str, object] | get_rf_configuration (self) |
| | Return simulated RF configuration.
|
| None | set_rf_configuration (self, dict[str, object] changes) |
| | Reject unsupported simulated RF settings.
|
| None | set_muted (self, bool muted) |
| | Set simulated audio mute.
|
| bool | get_muted (self) |
| | Return simulated audio mute.
|
Provide simulated receiver behavior.
◆ __init__()
| None simulated_receiver.SimulatedReceiver.__init__ |
( |
| self, |
|
|
int | frequency_hz = 104_300_000 ) |
Initialize the instance.
- Parameters
-
| self | The current instance. |
| frequency_hz | The frequency_hz value. |
◆ get_frequency()
| int simulated_receiver.SimulatedReceiver.get_frequency |
( |
| self | ) |
|
Return the frequency.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ get_mode()
| tuple[str, int] simulated_receiver.SimulatedReceiver.get_mode |
( |
| self | ) |
|
Return the mode.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ get_muted()
| bool simulated_receiver.SimulatedReceiver.get_muted |
( |
| self | ) |
|
Return simulated audio mute.
- Parameters
-
| self | The current instance. |
- Returns
- Mute state.
◆ get_rds()
| str | None simulated_receiver.SimulatedReceiver.get_rds |
( |
| self | ) |
|
Return the rds.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ get_rf_configuration()
| dict[str, object] simulated_receiver.SimulatedReceiver.get_rf_configuration |
( |
| self | ) |
|
Return simulated RF configuration.
- Parameters
-
| self | The current instance. |
- Returns
- RF settings.
◆ get_signal_strength()
| float | None simulated_receiver.SimulatedReceiver.get_signal_strength |
( |
| self | ) |
|
Return the signal strength.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ get_snr()
| float | None simulated_receiver.SimulatedReceiver.get_snr |
( |
| self | ) |
|
Return the snr.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ set_frequency()
| None simulated_receiver.SimulatedReceiver.set_frequency |
( |
| self, |
|
|
int | hz ) |
Set the frequency.
- Parameters
-
| self | The current instance. |
| hz | The hz value. |
◆ set_mode()
| None simulated_receiver.SimulatedReceiver.set_mode |
( |
| self, |
|
|
str | mode, |
|
|
int | bandwidth ) |
Set the mode.
- Parameters
-
| self | The current instance. |
| mode | The demodulation mode. |
| bandwidth | The channel bandwidth in hertz. |
◆ set_muted()
| None simulated_receiver.SimulatedReceiver.set_muted |
( |
| self, |
|
|
bool | muted ) |
Set simulated audio mute.
- Parameters
-
| self | The current instance. |
| muted | Mute state. |
◆ set_rf_configuration()
| None simulated_receiver.SimulatedReceiver.set_rf_configuration |
( |
| self, |
|
|
dict[str, object] | changes ) |
Reject unsupported simulated RF settings.
- Parameters
-
| self | The current instance. |
| changes | Requested settings. |
◆ start()
| None simulated_receiver.SimulatedReceiver.start |
( |
| self | ) |
|
Start the component.
- Parameters
-
| self | The current instance. |
◆ stop()
| None simulated_receiver.SimulatedReceiver.stop |
( |
| self | ) |
|
Stop the component.
- Parameters
-
| self | The current instance. |
◆ _bandwidth
| int simulated_receiver.SimulatedReceiver._bandwidth = 200_000 |
|
protected |
◆ _frequency
| simulated_receiver.SimulatedReceiver._frequency = frequency_hz |
|
protected |
◆ _lock
| simulated_receiver.SimulatedReceiver._lock = RLock() |
|
protected |
◆ _mode
| simulated_receiver.SimulatedReceiver._mode = "WFM" |
|
protected |
◆ _muted
| bool simulated_receiver.SimulatedReceiver._muted = False |
|
protected |
◆ _running
| bool simulated_receiver.SimulatedReceiver._running = False |
|
protected |
The documentation for this class was generated from the following file: