Source code for RsFsw.Implementations.Applications.K10x_Lte.Configure.Lte.Uplink.Cc.Pucch.FormatPy

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class FormatPyCls: """FormatPy commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("formatPy", core, parent)
[docs] def set(self, format_py: enums.PucchFormat, carrierComponent=repcap.CarrierComponent.Default) -> None: """SCPI: CONFigure[:LTE]:UL[:CC<cc>]:PUCCh:FORMat \n Snippet: driver.applications.k10Xlte.configure.lte.uplink.cc.pucch.formatPy.set(format_py = enums.PucchFormat.F1, carrierComponent = repcap.CarrierComponent.Default) \n Selects the PUCCH format. Note that formats 2a and 2b are available for normal cyclic prefix length only. \n :param format_py: F1 (F1) F1A (F1a) F1B (F1b) F2 (F2) F2A (F2a) F2B (F2b) F3 (F3) SUBF Allows you to define the PUCCH format for each subframe separately with . :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') """ param = Conversions.enum_scalar_to_str(format_py, enums.PucchFormat) carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) self._core.io.write(f'CONFigure:LTE:UL:CC{carrierComponent_cmd_val}:PUCCh:FORMat {param}')
# noinspection PyTypeChecker
[docs] def get(self, carrierComponent=repcap.CarrierComponent.Default) -> enums.PucchFormat: """SCPI: CONFigure[:LTE]:UL[:CC<cc>]:PUCCh:FORMat \n Snippet: value: enums.PucchFormat = driver.applications.k10Xlte.configure.lte.uplink.cc.pucch.formatPy.get(carrierComponent = repcap.CarrierComponent.Default) \n Selects the PUCCH format. Note that formats 2a and 2b are available for normal cyclic prefix length only. \n :param carrierComponent: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Cc') :return: format_py: F1 (F1) F1A (F1a) F1B (F1b) F2 (F2) F2A (F2a) F2B (F2b) F3 (F3) SUBF Allows you to define the PUCCH format for each subframe separately with .""" carrierComponent_cmd_val = self._cmd_group.get_repcap_cmd_value(carrierComponent, repcap.CarrierComponent) response = self._core.io.query_str(f'CONFigure:LTE:UL:CC{carrierComponent_cmd_val}:PUCCh:FORMat?') return Conversions.str_to_scalar_enum(response, enums.PucchFormat)