PE42420Controller
- class rfblocks.PE42420Controller(controller_id: str, device: pe42420, initial_state: State = State.OFF)[source]
Higher level control for the PE42420 RF switch board
Documentation for the SPDT RF switches rfblocks module which uses the PE42420 can be found here: SPDT RF Switches
- Parameters:
controller_id (str) – The controller name
device (
rfblocks.pe42420) –rfblocks.pe42420.
- dump_config() Dict[source]
Return the current switch configuration.
- Returns:
A dictionary containing the current switch state.
- load_config(config: Dict) None[source]
Set the current switch configuration.
- Parameters:
config (Dict) – A dictionary containing the switch configuration to be set.
Note that in order to update the switch hardware
configure()should be called.