from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TransmissionCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("transmission", core, parent)
[docs]
def set(self, transmission_type: enums.CestTransmType) -> None:
"""
``[SENSe]:CESTimation:TRANsmission`` \n
Snippet: ``driver.applications.k17Mcgd.sense.cestimation.transmission.set(transmission_type = enums.CestTransmType.OWAY)`` \n
Defines the satellite transmission type. This information is necessary to correctly calculate the Max Clock Offset.
:param transmission_type: OWAY One-Way Transmission TWAY Two-Way Transmission
"""
param = Conversions.enum_scalar_to_str(transmission_type, enums.CestTransmType)
self._core.io.write(f'SENSe:CESTimation:TRANsmission {param}')
# noinspection PyTypeChecker
[docs]
def get(self) -> enums.CestTransmType:
"""
``[SENSe]:CESTimation:TRANsmission`` \n
Snippet: ``value: enums.CestTransmType = driver.applications.k17Mcgd.sense.cestimation.transmission.get()`` \n
Defines the satellite transmission type. This information is necessary to correctly calculate the Max Clock Offset.
:return: transmission_type: OWAY One-Way Transmission TWAY Two-Way Transmission
"""
response = self._core.io.query_str(f'SENSe:CESTimation:TRANsmission?')
return Conversions.str_to_scalar_enum(response, enums.CestTransmType)