Source code for RsSmbv.Implementations.Source.Bb.Evdo.Terminal.Dchannel.Packet.Psize

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 PsizeCls: """Psize commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("psize", core, parent)
[docs] def set(self, psize: enums.EvdoPayload, terminal=repcap.Terminal.Default, packet=repcap.Packet.Default) -> None: """SCPI: [SOURce<HW>]:BB:EVDO:TERMinal<ST>:DCHannel:PACKet<CH>:PSIZe \n Snippet: driver.source.bb.evdo.terminal.dchannel.packet.psize.set(psize = enums.EvdoPayload.PS1024, terminal = repcap.Terminal.Default, packet = repcap.Packet.Default) \n (enabled for an access terminal working in traffic mode) Sets the Payload Size in bits for the selected packet. Note: Configuration of Packet 2 and Packet 3 transmitted on the second and the third subframe, is only enabled for physical layer subtype 2. \n :param psize: PS128| PS256| PS512| PS768| PS1024| PS1536| PS2048| PS3072| PS4096| PS6144| PS8192| PS12288 :param terminal: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Terminal') :param packet: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Packet') """ param = Conversions.enum_scalar_to_str(psize, enums.EvdoPayload) terminal_cmd_val = self._cmd_group.get_repcap_cmd_value(terminal, repcap.Terminal) packet_cmd_val = self._cmd_group.get_repcap_cmd_value(packet, repcap.Packet) self._core.io.write(f'SOURce<HwInstance>:BB:EVDO:TERMinal{terminal_cmd_val}:DCHannel:PACKet{packet_cmd_val}:PSIZe {param}')
# noinspection PyTypeChecker
[docs] def get(self, terminal=repcap.Terminal.Default, packet=repcap.Packet.Default) -> enums.EvdoPayload: """SCPI: [SOURce<HW>]:BB:EVDO:TERMinal<ST>:DCHannel:PACKet<CH>:PSIZe \n Snippet: value: enums.EvdoPayload = driver.source.bb.evdo.terminal.dchannel.packet.psize.get(terminal = repcap.Terminal.Default, packet = repcap.Packet.Default) \n (enabled for an access terminal working in traffic mode) Sets the Payload Size in bits for the selected packet. Note: Configuration of Packet 2 and Packet 3 transmitted on the second and the third subframe, is only enabled for physical layer subtype 2. \n :param terminal: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Terminal') :param packet: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Packet') :return: psize: PS128| PS256| PS512| PS768| PS1024| PS1536| PS2048| PS3072| PS4096| PS6144| PS8192| PS12288""" terminal_cmd_val = self._cmd_group.get_repcap_cmd_value(terminal, repcap.Terminal) packet_cmd_val = self._cmd_group.get_repcap_cmd_value(packet, repcap.Packet) response = self._core.io.query_str(f'SOURce<HwInstance>:BB:EVDO:TERMinal{terminal_cmd_val}:DCHannel:PACKet{packet_cmd_val}:PSIZe?') return Conversions.str_to_scalar_enum(response, enums.EvdoPayload)