Source code for RsSmcv.Implementations.Source.Bb.Radio.Fm.Rds.Opf

from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs] class OpfCls: """Opf commands group definition. 71 total commands, 24 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("opf", core, parent) @property def apply(self): """apply commands group. 0 Sub-classes, 1 commands.""" if not hasattr(self, '_apply'): from .Apply import ApplyCls self._apply = ApplyCls(self._core, self._cmd_group) return self._apply @property def g10B(self): """g10B commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g10B'): from .G10B import G10BCls self._g10B = G10BCls(self._core, self._cmd_group) return self._g10B @property def g11A(self): """g11A commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g11A'): from .G11A import G11ACls self._g11A = G11ACls(self._core, self._cmd_group) return self._g11A @property def g11B(self): """g11B commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g11B'): from .G11B import G11BCls self._g11B = G11BCls(self._core, self._cmd_group) return self._g11B @property def g12A(self): """g12A commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g12A'): from .G12A import G12ACls self._g12A = G12ACls(self._core, self._cmd_group) return self._g12A @property def g12B(self): """g12B commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g12B'): from .G12B import G12BCls self._g12B = G12BCls(self._core, self._cmd_group) return self._g12B @property def g13A(self): """g13A commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g13A'): from .G13A import G13ACls self._g13A = G13ACls(self._core, self._cmd_group) return self._g13A @property def g13B(self): """g13B commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g13B'): from .G13B import G13BCls self._g13B = G13BCls(self._core, self._cmd_group) return self._g13B @property def g15A(self): """g15A commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g15A'): from .G15A import G15ACls self._g15A = G15ACls(self._core, self._cmd_group) return self._g15A @property def g1A(self): """g1A commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g1A'): from .G1A import G1ACls self._g1A = G1ACls(self._core, self._cmd_group) return self._g1A @property def g1B(self): """g1B commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g1B'): from .G1B import G1BCls self._g1B = G1BCls(self._core, self._cmd_group) return self._g1B @property def g3A(self): """g3A commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g3A'): from .G3A import G3ACls self._g3A = G3ACls(self._core, self._cmd_group) return self._g3A @property def g3B(self): """g3B commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g3B'): from .G3B import G3BCls self._g3B = G3BCls(self._core, self._cmd_group) return self._g3B @property def g4B(self): """g4B commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g4B'): from .G4B import G4BCls self._g4B = G4BCls(self._core, self._cmd_group) return self._g4B @property def g5A(self): """g5A commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g5A'): from .G5A import G5ACls self._g5A = G5ACls(self._core, self._cmd_group) return self._g5A @property def g5B(self): """g5B commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g5B'): from .G5B import G5BCls self._g5B = G5BCls(self._core, self._cmd_group) return self._g5B @property def g6A(self): """g6A commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g6A'): from .G6A import G6ACls self._g6A = G6ACls(self._core, self._cmd_group) return self._g6A @property def g6B(self): """g6B commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g6B'): from .G6B import G6BCls self._g6B = G6BCls(self._core, self._cmd_group) return self._g6B @property def g7A(self): """g7A commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g7A'): from .G7A import G7ACls self._g7A = G7ACls(self._core, self._cmd_group) return self._g7A @property def g7B(self): """g7B commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g7B'): from .G7B import G7BCls self._g7B = G7BCls(self._core, self._cmd_group) return self._g7B @property def g8A(self): """g8A commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g8A'): from .G8A import G8ACls self._g8A = G8ACls(self._core, self._cmd_group) return self._g8A @property def g8B(self): """g8B commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g8B'): from .G8B import G8BCls self._g8B = G8BCls(self._core, self._cmd_group) return self._g8B @property def g9A(self): """g9A commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g9A'): from .G9A import G9ACls self._g9A = G9ACls(self._core, self._cmd_group) return self._g9A @property def g9B(self): """g9B commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_g9B'): from .G9B import G9BCls self._g9B = G9BCls(self._core, self._cmd_group) return self._g9B
[docs] def get_state(self) -> bool: """SCPI: [SOURce<HW>]:BB:RADio:FM:RDS:OPF:[STATe] \n Snippet: value: bool = driver.source.bb.radio.fm.rds.opf.get_state() \n Enables the open format. \n :return: open_format_state: 1| ON| 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:RADio:FM:RDS:OPF:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, open_format_state: bool) -> None: """SCPI: [SOURce<HW>]:BB:RADio:FM:RDS:OPF:[STATe] \n Snippet: driver.source.bb.radio.fm.rds.opf.set_state(open_format_state = False) \n Enables the open format. \n :param open_format_state: 1| ON| 0| OFF """ param = Conversions.bool_to_str(open_format_state) self._core.io.write(f'SOURce<HwInstance>:BB:RADio:FM:RDS:OPF:STATe {param}')
def clone(self) -> 'OpfCls': """Clones the group by creating new object from it and its whole existing subgroups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = OpfCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group