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:EUTRa:UL:REFSig:SRS:ANSTx`` \n
Snippet: ``value: bool = driver.source.bb.eutra.uplink.refsig.srs.get_ans_tx()`` \n
Enables/disables simultaneous transmission of SRS (sounding reference signal) and ACK/NACK messages, i.e. transmission of
SRS and PUCCH in the same subframe.
:return: an_srs_sim_tx_state: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa: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:EUTRa:UL:REFSig:SRS:ANSTx`` \n
Snippet: ``driver.source.bb.eutra.uplink.refsig.srs.set_ans_tx(an_srs_sim_tx_state = False)`` \n
Enables/disables simultaneous transmission of SRS (sounding reference signal) and ACK/NACK messages, i.e. transmission of
SRS and PUCCH in the same subframe.
:param an_srs_sim_tx_state: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(an_srs_sim_tx_state)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:REFSig:SRS:ANSTx {param}')
[docs]
def get_csrs(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:UL:REFSig:SRS:CSRS`` \n
Snippet: ``value: int = driver.source.bb.eutra.uplink.refsig.srs.get_csrs()`` \n
Sets the cell-specific parameter SRS bandwidth configuration (CSRS) .
:return: csrs: integer Range: 0 to 7
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:REFSig:SRS:CSRS?')
return Conversions.str_to_int(response)
[docs]
def set_csrs(self, csrs: int) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:UL:REFSig:SRS:CSRS`` \n
Snippet: ``driver.source.bb.eutra.uplink.refsig.srs.set_csrs(csrs = 1)`` \n
Sets the cell-specific parameter SRS bandwidth configuration (CSRS) .
:param csrs: integer Range: 0 to 7
"""
param = Conversions.decimal_value_to_str(csrs)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:REFSig:SRS:CSRS {param}')
[docs]
def get_dsfc(self) -> str:
"""
``[SOURce<HW>]:BB:EUTRa:UL:REFSig:SRS:DSFC`` \n
Snippet: ``value: str = driver.source.bb.eutra.uplink.refsig.srs.get_dsfc()`` \n
Queries the value for the cell-specific parameter transmission offset DeltaSFC in subframes, depending on the selected
SRS subframe configuration (method ``RsSmw.source.bb.eutra.uplink.refsig.srs.csrs()`` ) and the dduplexing mode (method
``RsSmw.source.bb.eutra.duplexing()`` ) .
:return: delta_sfc: string
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:REFSig:SRS:DSFC?')
return trim_str_response(response)
[docs]
def get_mu_pts(self) -> bool:
"""
``[SOURce<HW>]:BB:EUTRa:UL:REFSig:SRS:MUPTs`` \n
Snippet: ``value: bool = driver.source.bb.eutra.uplink.refsig.srs.get_mu_pts()`` \n
Enables/disables the cell-specific parameter srsMaxUpPts.
:return: max_up_pts: 1 | ON | 0| OFF
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:REFSig:SRS:MUPTs?')
return Conversions.str_to_bool(response)
[docs]
def set_mu_pts(self, max_up_pts: bool) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:UL:REFSig:SRS:MUPTs`` \n
Snippet: ``driver.source.bb.eutra.uplink.refsig.srs.set_mu_pts(max_up_pts = False)`` \n
Enables/disables the cell-specific parameter srsMaxUpPts.
:param max_up_pts: 1 | ON | 0| OFF
"""
param = Conversions.bool_to_str(max_up_pts)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:REFSig:SRS:MUPTs {param}')
[docs]
def get_su_configuration(self) -> int:
"""
``[SOURce<HW>]:BB:EUTRa:UL:REFSig:SRS:SUConfiguration`` \n
Snippet: ``value: int = driver.source.bb.eutra.uplink.refsig.srs.get_su_configuration()`` \n
Sets the cell-specific parameter SRS subframe configuration.
:return: sub_frame_config: integer Range: 0 to 15
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:REFSig:SRS:SUConfiguration?')
return Conversions.str_to_int(response)
[docs]
def set_su_configuration(self, sub_frame_config: int) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:UL:REFSig:SRS:SUConfiguration`` \n
Snippet: ``driver.source.bb.eutra.uplink.refsig.srs.set_su_configuration(sub_frame_config = 1)`` \n
Sets the cell-specific parameter SRS subframe configuration.
:param sub_frame_config: integer Range: 0 to 15
"""
param = Conversions.decimal_value_to_str(sub_frame_config)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:REFSig:SRS:SUConfiguration {param}')
[docs]
def get_tsfc(self) -> str:
"""
``[SOURce<HW>]:BB:EUTRa:UL:REFSig:SRS:TSFC`` \n
Snippet: ``value: str = driver.source.bb.eutra.uplink.refsig.srs.get_tsfc()`` \n
Queries the value for the cell-specific parameter configuration period TSFC in subframes, depending on the selected SRS
subframe configuration (method ``RsSmw.source.bb.eutra.uplink.refsig.srs.csrs()`` ) and the duplexing mode (method
``RsSmw.source.bb.eutra.duplexing()`` ) .
:return: tsfc: string
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:REFSig:SRS:TSFC?')
return trim_str_response(response)