from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SmodulationCls:
"""
| Commands in total: 7
| Subgroups: 4
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("smodulation", core, parent)
@property
def clock(self):
"""
| Commands in total: 1
| Subgroups: 1
| Direct child commands: 0
"""
if not hasattr(self, '_clock'):
from .Clock import ClockCls
self._clock = ClockCls(self._core, self._cmd_group)
return self._clock
@property
def ddelay(self):
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
if not hasattr(self, '_ddelay'):
from .Ddelay import DdelayCls
self._ddelay = DdelayCls(self._core, self._cmd_group)
return self._ddelay
@property
def rcvState(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_rcvState'):
from .RcvState import RcvStateCls
self._rcvState = RcvStateCls(self._core, self._cmd_group)
return self._rcvState
@property
def throughput(self):
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
if not hasattr(self, '_throughput'):
from .Throughput import ThroughputCls
self._throughput = ThroughputCls(self._core, self._cmd_group)
return self._throughput
# noinspection PyTypeChecker
[docs]
def get_border(self) -> enums.BitOrder:
"""
``[SOURce<HW>]:BB:DM:SMODulation:BORDer`` \n
Snippet: ``value: enums.BitOrder = driver.source.bb.dm.smodulation.get_border()`` \n
Sets the bit order for processing extern serial data.
:return: bit_order: LSBit | MSBit
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:DM:SMODulation:BORDer?')
return Conversions.str_to_scalar_enum(response, enums.BitOrder)
[docs]
def set_border(self, bit_order: enums.BitOrder) -> None:
"""
``[SOURce<HW>]:BB:DM:SMODulation:BORDer`` \n
Snippet: ``driver.source.bb.dm.smodulation.set_border(bit_order = enums.BitOrder.LSBit)`` \n
Sets the bit order for processing extern serial data.
:param bit_order: LSBit | MSBit
"""
param = Conversions.enum_scalar_to_str(bit_order, enums.BitOrder)
self._core.io.write(f'SOURce<HwInstance>:BB:DM:SMODulation:BORDer {param}')
[docs]
def get_cdt_deviation(self) -> float:
"""
``[SOURce<HW>]:BB:DM:SMODulation:CDTDeviation`` \n
Snippet: ``value: float = driver.source.bb.dm.smodulation.get_cdt_deviation()`` \n
Queries the timing deviations (time offset) between the clock and the data signals.
:return: deviation: float Range: -5E-3 to 5E-3
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:DM:SMODulation:CDTDeviation?')
return Conversions.str_to_float(response)
def clone(self) -> 'SmodulationCls':
"""
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 = SmodulationCls(self._core, self._cmd_group.parent)
self._cmd_group.synchronize_repcaps(new_group)
return new_group