Adapt the rigctl protocol client to the radio backend contract. More...
Public Member Functions | |
| str | start (self) |
| Start the receiver backend. | |
| str | stop (self) |
| Stop the receiver backend. | |
| str | set_frequency (self, int frequency_hz) |
| Tune to a frequency. | |
| int | get_frequency (self) |
| Return the current tuned frequency. | |
| str | set_mode (self, str mode, int bandwidth) |
| Set the receiver demodulation mode. | |
| Optional[str] | get_signal_strength (self) |
| Return receiver signal strength. | |
| Optional[str] | get_snr (self) |
| Return the signal-to-noise ratio. | |
| Optional[str] | get_rds (self) |
| Return decoded Radio Data System text. | |
Static Protected Member Functions | |
| Optional[str] | _normalize_optional_response (Optional[str] response) |
| Normalize an optional rigctl response. | |
Adapt the rigctl protocol client to the radio backend contract.
|
staticprotected |
Normalize an optional rigctl response.
Empty or whitespace-only responses are treated as unavailable.
| int radio.adapters.rigctl_radio_backend.RigctlRadioBackend.get_frequency | ( | self | ) |
Return the current tuned frequency.
Reimplemented from radio.radio_backend_if.RadioBackendIf.
| Optional[str] radio.adapters.rigctl_radio_backend.RigctlRadioBackend.get_rds | ( | self | ) |
Return decoded Radio Data System text.
Reimplemented from radio.radio_backend_if.RadioBackendIf.
| Optional[str] radio.adapters.rigctl_radio_backend.RigctlRadioBackend.get_signal_strength | ( | self | ) |
Return receiver signal strength.
Reimplemented from radio.radio_backend_if.RadioBackendIf.
| Optional[str] radio.adapters.rigctl_radio_backend.RigctlRadioBackend.get_snr | ( | self | ) |
Return the signal-to-noise ratio.
Reimplemented from radio.radio_backend_if.RadioBackendIf.
| str radio.adapters.rigctl_radio_backend.RigctlRadioBackend.set_frequency | ( | self, | |
| int | frequency_hz ) |
Tune to a frequency.
| frequency_hz | Target frequency in hertz. |
Reimplemented from radio.radio_backend_if.RadioBackendIf.
| str radio.adapters.rigctl_radio_backend.RigctlRadioBackend.set_mode | ( | self, | |
| str | mode, | ||
| int | bandwidth ) |
Set the receiver demodulation mode.
| mode | Backend demodulation mode name. |
| bandwidth | Receiver bandwidth in hertz. |
Reimplemented from radio.radio_backend_if.RadioBackendIf.
| str radio.adapters.rigctl_radio_backend.RigctlRadioBackend.start | ( | self | ) |
Start the receiver backend.
Reimplemented from radio.radio_backend_if.RadioBackendIf.
| str radio.adapters.rigctl_radio_backend.RigctlRadioBackend.stop | ( | self | ) |
Stop the receiver backend.
Reimplemented from radio.radio_backend_if.RadioBackendIf.