from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class MbsfnCls:
"""
| Commands in total: 37
| Subgroups: 4
| Direct child commands: 3
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("mbsfn", core, parent)
@property
def ai(self):
"""
| Commands in total: 18
| Subgroups: 1
| Direct child commands: 3
"""
if not hasattr(self, '_ai'):
from .Ai import AiCls
self._ai = AiCls(self._core, self._cmd_group)
return self._ai
@property
def mtch(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_mtch'):
from .Mtch import MtchCls
self._mtch = MtchCls(self._core, self._cmd_group)
return self._mtch
@property
def pmch(self):
"""
| Commands in total: 10
| Subgroups: 10
| Direct child commands: 0
"""
if not hasattr(self, '_pmch'):
from .Pmch import PmchCls
self._pmch = PmchCls(self._core, self._cmd_group)
return self._pmch
@property
def sc(self):
"""
| Commands in total: 4
| Subgroups: 0
| Direct child commands: 4
"""
if not hasattr(self, '_sc'):
from .Sc import ScCls
self._sc = ScCls(self._core, self._cmd_group)
return self._sc
# noinspection PyTypeChecker
[docs]
def get_mode(self) -> enums.EutraMbsfnType:
"""
``[SOURce<HW>]:BB:EUTRa:DL:MBSFn:MODE`` \n
Snippet: ``value: enums.EutraMbsfnType = driver.source.bb.eutra.downlink.mbsfn.get_mode()`` \n
Enables the MBSFN transmission and selects a mixed MBSFN Mode.
:return: mbsfn_mode: OFF | MIXed
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:MODE?')
return Conversions.str_to_scalar_enum(response, enums.EutraMbsfnType)
[docs]
def set_mode(self, mbsfn_mode: enums.EutraMbsfnType) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:DL:MBSFn:MODE`` \n
Snippet: ``driver.source.bb.eutra.downlink.mbsfn.set_mode(mbsfn_mode = enums.EutraMbsfnType.MIXed)`` \n
Enables the MBSFN transmission and selects a mixed MBSFN Mode.
:param mbsfn_mode: OFF | MIXed
"""
param = Conversions.enum_scalar_to_str(mbsfn_mode, enums.EutraMbsfnType)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:MODE {param}')
[docs]
def get_rhoa(self) -> float:
"""
``[SOURce<HW>]:BB:EUTRa:DL:MBSFn:RHOA`` \n
Snippet: ``value: float = driver.source.bb.eutra.downlink.mbsfn.get_rhoa()`` \n
Defines the power of the MBSFN channels relative to the common Reference Signals.
:return: rhoa: float Range: -80 to 10
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:RHOA?')
return Conversions.str_to_float(response)
[docs]
def set_rhoa(self, rhoa: float) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:DL:MBSFn:RHOA`` \n
Snippet: ``driver.source.bb.eutra.downlink.mbsfn.set_rhoa(rhoa = 1.0)`` \n
Defines the power of the MBSFN channels relative to the common Reference Signals.
:param rhoa: float Range: -80 to 10
"""
param = Conversions.decimal_value_to_str(rhoa)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:RHOA {param}')
# noinspection PyTypeChecker
[docs]
def get_uec(self) -> enums.UeCat:
"""
``[SOURce<HW>]:BB:EUTRa:DL:MBSFn:UEC`` \n
Snippet: ``value: enums.UeCat = driver.source.bb.eutra.downlink.mbsfn.get_uec()`` \n
Defines the UE category as defined in .
:return: ue_category: C1 | C2 | C3 | C4 | C5
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:UEC?')
return Conversions.str_to_scalar_enum(response, enums.UeCat)
[docs]
def set_uec(self, ue_category: enums.UeCat) -> None:
"""
``[SOURce<HW>]:BB:EUTRa:DL:MBSFn:UEC`` \n
Snippet: ``driver.source.bb.eutra.downlink.mbsfn.set_uec(ue_category = enums.UeCat.C1)`` \n
Defines the UE category as defined in .
:param ue_category: C1 | C2 | C3 | C4 | C5
"""
param = Conversions.enum_scalar_to_str(ue_category, enums.UeCat)
self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:MBSFn:UEC {param}')
def clone(self) -> 'MbsfnCls':
"""
Clones the group by creating new object from it and its whole existing subgroups.
Also copies all the existing default Repeated Capabilities setting,
which you can change independently without affecting the original group.
"""
new_group = MbsfnCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group