from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from .......Internal.StructBase import StructBase
from .......Internal.ArgStruct import ArgStruct
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]
class ActiveBeamCls:
"""ActiveBeam commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("activeBeam", core, parent)
# noinspection PyTypeChecker
[docs]
class GetStruct(StructBase):
"""Response structure. Fields: \n
- Association: enums.Association: SSB beam or NZP CSI-RS beam
- Index: int: Beam index"""
__meta_args_list = [
ArgStruct.scalar_enum('Association', enums.Association),
ArgStruct.scalar_int('Index')]
def __init__(self):
StructBase.__init__(self, self)
self.Association: enums.Association = None
self.Index: int = None
[docs]
def get(self, cell_name: str) -> GetStruct:
"""SCPI: SENSe:SIGNaling:NRADio:CELL:BEAMs:ACTivebeam \n
Snippet: value: GetStruct = driver.sense.signaling.nradio.cell.beams.activeBeam.get(cell_name = 'abc') \n
Queries information about the active beam. \n
:param cell_name: No help available
:return: structure: for return value, see the help for GetStruct structure arguments."""
param = Conversions.value_to_quoted_str(cell_name)
return self._core.io.query_struct(f'SENSe:SIGNaling:NRADio:CELL:BEAMs:ACTivebeam? {param}', self.__class__.GetStruct())