Source code for RsSmbv.Implementations.Source.Bb.W3Gpp.Mstation.Enhanced.Pcpch.Ccoding

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class CcodingCls: """Ccoding commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("ccoding", core, parent)
[docs] def get_state(self) -> bool: """SCPI: [SOURce<HW>]:BB:W3GPp:MSTation:ENHanced:PCPCh:CCODing:STATe \n Snippet: value: bool = driver.source.bb.w3Gpp.mstation.enhanced.pcpch.ccoding.get_state() \n The command activates or deactivates channel coding for the PCPCH. When channel coding is active, the symbol rate is limited to the range between 15 and 120 ksps. Values above this limit are automatically set to 120 ksps. \n :return: state: ON| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:W3GPp:MSTation:ENHanced:PCPCh:CCODing:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, state: bool) -> None: """SCPI: [SOURce<HW>]:BB:W3GPp:MSTation:ENHanced:PCPCh:CCODing:STATe \n Snippet: driver.source.bb.w3Gpp.mstation.enhanced.pcpch.ccoding.set_state(state = False) \n The command activates or deactivates channel coding for the PCPCH. When channel coding is active, the symbol rate is limited to the range between 15 and 120 ksps. Values above this limit are automatically set to 120 ksps. \n :param state: ON| OFF """ param = Conversions.bool_to_str(state) self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:MSTation:ENHanced:PCPCh:CCODing:STATe {param}')
# noinspection PyTypeChecker
[docs] def get_type_py(self) -> enums.ChanCodTypeEnhPcpc: """SCPI: [SOURce<HW>]:BB:W3GPp:MSTation:ENHanced:PCPCh:CCODing:TYPE \n Snippet: value: enums.ChanCodTypeEnhPcpc = driver.source.bb.w3Gpp.mstation.enhanced.pcpch.ccoding.get_type_py() \n The command selects the channel coding scheme in accordance with the 3GPP specification. \n :return: type_py: TB168| TB360 TB168 CPCH RMC (TB size 168 bits) TB360 CPCH RMC (TB size 360 bits) """ response = self._core.io.query_str('SOURce<HwInstance>:BB:W3GPp:MSTation:ENHanced:PCPCh:CCODing:TYPE?') return Conversions.str_to_scalar_enum(response, enums.ChanCodTypeEnhPcpc)
[docs] def set_type_py(self, type_py: enums.ChanCodTypeEnhPcpc) -> None: """SCPI: [SOURce<HW>]:BB:W3GPp:MSTation:ENHanced:PCPCh:CCODing:TYPE \n Snippet: driver.source.bb.w3Gpp.mstation.enhanced.pcpch.ccoding.set_type_py(type_py = enums.ChanCodTypeEnhPcpc.TB168) \n The command selects the channel coding scheme in accordance with the 3GPP specification. \n :param type_py: TB168| TB360 TB168 CPCH RMC (TB size 168 bits) TB360 CPCH RMC (TB size 360 bits) """ param = Conversions.enum_scalar_to_str(type_py, enums.ChanCodTypeEnhPcpc) self._core.io.write(f'SOURce<HwInstance>:BB:W3GPp:MSTation:ENHanced:PCPCh:CCODing:TYPE {param}')