from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal import Conversions
from ........ import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CestimationCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("cestimation", core, parent)
[docs]
def set(self, type_py: enums.ChannelEstUl) -> None:
"""
``[SENSe][:LTE]:UL:DEMod:CESTimation`` \n
Snippet: ``driver.applications.k10Xlte.sense.lte.uplink.demod.cestimation.set(type_py = enums.ChannelEstUl.PIL)`` \n
Selects the channel estimation type.
:param type_py: PIL Pilot only PILP Pilot and payload
"""
param = Conversions.enum_scalar_to_str(type_py, enums.ChannelEstUl)
self._core.io.write(f'SENSe:LTE:UL:DEMod:CESTimation {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.ChannelEstUl:
"""
``[SENSe][:LTE]:UL:DEMod:CESTimation`` \n
Snippet: ``value: enums.ChannelEstUl = driver.applications.k10Xlte.sense.lte.uplink.demod.cestimation.get()`` \n
Selects the channel estimation type.
:return: type_py: PIL Pilot only PILP Pilot and payload
"""
response = self._core.io.query_str(f'SENSe:LTE:UL:DEMod:CESTimation?')
return Conversions.str_to_scalar_enum(response, enums.ChannelEstUl)