from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CrateCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("crate", core, parent)
[docs]
def set(self, chip_rate: float) -> None:
"""
``CONFigure:EDMG:CRATe`` \n
Snippet: ``driver.applications.k9X11Ad.configure.edmg.crate.set(chip_rate = 1.0)`` \n
Chip rate used for transmission; specified in the IEEE 802.11 ay standard as: NCB * 1.76 GHz
:param chip_rate: Unit: HZ
"""
param = Conversions.decimal_value_to_str(chip_rate)
self._core.io.write(f'CONFigure:EDMG:CRATe {param}')
[docs]
def get(self) -> float:
"""
``CONFigure:EDMG:CRATe`` \n
Snippet: ``value: float = driver.applications.k9X11Ad.configure.edmg.crate.get()`` \n
Chip rate used for transmission; specified in the IEEE 802.11 ay standard as: NCB * 1.76 GHz
:return: chip_rate: Unit: HZ
"""
response = self._core.io.query_str(f'CONFigure:EDMG:CRATe?')
return Conversions.str_to_float(response)