OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
ui.radio.rf_hardware_config_if.RfHardwareConfigIf Class Reference

Run RF requests asynchronously and deliver completions on the UI thread. More...

Public Member Functions

None load (self, Callable[[RfHardwareConfig], None] on_success, Callable[[str], None] on_error)
 Request the current receiver configuration asynchronously.
None apply (self, RfHardwareConfig config, Callable[[], None] on_success, Callable[[str], None] on_error)
 Apply receiver configuration asynchronously.

Detailed Description

Run RF requests asynchronously and deliver completions on the UI thread.

Member Function Documentation

◆ apply()

None ui.radio.rf_hardware_config_if.RfHardwareConfigIf.apply ( self,
RfHardwareConfig config,
Callable[[], None] on_success,
Callable[[str], None] on_error )

Apply receiver configuration asynchronously.

Parameters
configRequested receiver settings.
on_successCallback invoked on successful application.
on_errorCallback receiving an error message.

◆ load()

None ui.radio.rf_hardware_config_if.RfHardwareConfigIf.load ( self,
Callable[[RfHardwareConfig], None] on_success,
Callable[[str], None] on_error )

Request the current receiver configuration asynchronously.

Parameters
on_successCallback receiving the configuration.
on_errorCallback receiving an error message.

The documentation for this class was generated from the following file:
  • ui/radio/rf_hardware_config_if.py