[docs]classApf2Cls:"""Apf2 commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("apf2",core,parent)
[docs]defset(self,apf_2:str,testMode=repcap.TestMode.Default,slot=repcap.Slot.Default,channel=repcap.Channel.Default)->None:"""SCPI: [SOURce<HW>]:BB:TETRa:SCONfiguration:TMODe<DI>:SLOT<ST>:LDIRection<CH>:APF2 \n Snippet: driver.source.bb.tetra.sconfiguration.tmode.slot.ldirection.apf2.set(apf_2 = rawAbc, testMode = repcap.TestMode.Default, slot = repcap.Slot.Default, channel = repcap.Channel.Default) \n Sets the value for the information element Field 2 of the Access-Assign PDU. \n :param apf_2: 8 bits :param testMode: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Tmode') :param slot: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Slot') :param channel: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Ldirection') """param=Conversions.value_to_str(apf_2)testMode_cmd_val=self._cmd_group.get_repcap_cmd_value(testMode,repcap.TestMode)slot_cmd_val=self._cmd_group.get_repcap_cmd_value(slot,repcap.Slot)channel_cmd_val=self._cmd_group.get_repcap_cmd_value(channel,repcap.Channel)self._core.io.write(f'SOURce<HwInstance>:BB:TETRa:SCONfiguration:TMODe{testMode_cmd_val}:SLOT{slot_cmd_val}:LDIRection{channel_cmd_val}:APF2 {param}')
[docs]defget(self,testMode=repcap.TestMode.Default,slot=repcap.Slot.Default,channel=repcap.Channel.Default)->str:"""SCPI: [SOURce<HW>]:BB:TETRa:SCONfiguration:TMODe<DI>:SLOT<ST>:LDIRection<CH>:APF2 \n Snippet: value: str = driver.source.bb.tetra.sconfiguration.tmode.slot.ldirection.apf2.get(testMode = repcap.TestMode.Default, slot = repcap.Slot.Default, channel = repcap.Channel.Default) \n Sets the value for the information element Field 2 of the Access-Assign PDU. \n :param testMode: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Tmode') :param slot: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Slot') :param channel: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Ldirection') :return: apf_2: 8 bits"""testMode_cmd_val=self._cmd_group.get_repcap_cmd_value(testMode,repcap.TestMode)slot_cmd_val=self._cmd_group.get_repcap_cmd_value(slot,repcap.Slot)channel_cmd_val=self._cmd_group.get_repcap_cmd_value(channel,repcap.Channel)response=self._core.io.query_str(f'SOURce<HwInstance>:BB:TETRa:SCONfiguration:TMODe{testMode_cmd_val}:SLOT{slot_cmd_val}:LDIRection{channel_cmd_val}:APF2?')returntrim_str_response(response)