from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from .......Internal.Utilities import trim_str_response
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SrsCls:
"""
| Commands in total: 6
| Subgroups: 0
| Direct child commands: 6
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("srs", core, parent)
[docs]
def get_ans_tx(self) -> bool:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:SRS:ANSTx`` \n
Snippet: ``value: bool = driver.source.bb.v5G.uplink.refsig.srs.get_ans_tx()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:REFSig:SRS:ANSTx?')
return Conversions.str_to_bool(response)
[docs]
def set_ans_tx(self, an_srs_sim_tx_state: bool) -> None:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:SRS:ANSTx`` \n
Snippet: ``driver.source.bb.v5G.uplink.refsig.srs.set_ans_tx(an_srs_sim_tx_state = False)`` \n
No help available
"""
param = Conversions.bool_to_str(an_srs_sim_tx_state)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:REFSig:SRS:ANSTx {param}')
[docs]
def get_csrs(self) -> int:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:SRS:CSRS`` \n
Snippet: ``value: int = driver.source.bb.v5G.uplink.refsig.srs.get_csrs()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:REFSig:SRS:CSRS?')
return Conversions.str_to_int(response)
[docs]
def set_csrs(self, csrs: int) -> None:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:SRS:CSRS`` \n
Snippet: ``driver.source.bb.v5G.uplink.refsig.srs.set_csrs(csrs = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(csrs)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:REFSig:SRS:CSRS {param}')
[docs]
def get_dsfc(self) -> str:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:SRS:DSFC`` \n
Snippet: ``value: str = driver.source.bb.v5G.uplink.refsig.srs.get_dsfc()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:REFSig:SRS:DSFC?')
return trim_str_response(response)
[docs]
def get_mu_pts(self) -> bool:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:SRS:MUPTs`` \n
Snippet: ``value: bool = driver.source.bb.v5G.uplink.refsig.srs.get_mu_pts()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:REFSig:SRS:MUPTs?')
return Conversions.str_to_bool(response)
[docs]
def set_mu_pts(self, max_up_pts: bool) -> None:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:SRS:MUPTs`` \n
Snippet: ``driver.source.bb.v5G.uplink.refsig.srs.set_mu_pts(max_up_pts = False)`` \n
No help available
"""
param = Conversions.bool_to_str(max_up_pts)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:REFSig:SRS:MUPTs {param}')
[docs]
def get_su_configuration(self) -> int:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:SRS:SUConfiguration`` \n
Snippet: ``value: int = driver.source.bb.v5G.uplink.refsig.srs.get_su_configuration()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:REFSig:SRS:SUConfiguration?')
return Conversions.str_to_int(response)
[docs]
def set_su_configuration(self, sub_frame_config: int) -> None:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:SRS:SUConfiguration`` \n
Snippet: ``driver.source.bb.v5G.uplink.refsig.srs.set_su_configuration(sub_frame_config = 1)`` \n
No help available
"""
param = Conversions.decimal_value_to_str(sub_frame_config)
self._core.io.write(f'SOURce<HwInstance>:BB:V5G:UL:REFSig:SRS:SUConfiguration {param}')
[docs]
def get_tsfc(self) -> str:
"""
``[SOURce<HW>]:BB:V5G:UL:REFSig:SRS:TSFC`` \n
Snippet: ``value: str = driver.source.bb.v5G.uplink.refsig.srs.get_tsfc()`` \n
No help available
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:V5G:UL:REFSig:SRS:TSFC?')
return trim_str_response(response)