Source code for RsSmbv.Implementations.Source.Bb.Gnss.Sv.Navic.Nmessage.Nav.Time.Conversion.Utc.Tot

from ............Internal.Core import Core
from ............Internal.CommandsGroup import CommandsGroup
from ............Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class TotCls: """Tot commands group definition. 2 total commands, 0 Subgroups, 2 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("tot", core, parent)
[docs] def get_unscaled(self) -> int: """SCPI: [SOURce<HW>]:BB:GNSS:SV:NAVic:NMESsage:NAV:TIME:CONVersion:UTC:TOT:UNSCaled \n Snippet: value: int = driver.source.bb.gnss.sv.navic.nmessage.nav.time.conversion.utc.tot.get_unscaled() \n Sets the parameter Tot. \n :return: tot: integer Range: 0 to 65535 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SV:NAVic:NMESsage:NAV:TIME:CONVersion:UTC:TOT:UNSCaled?') return Conversions.str_to_int(response)
[docs] def set_unscaled(self, tot: int) -> None: """SCPI: [SOURce<HW>]:BB:GNSS:SV:NAVic:NMESsage:NAV:TIME:CONVersion:UTC:TOT:UNSCaled \n Snippet: driver.source.bb.gnss.sv.navic.nmessage.nav.time.conversion.utc.tot.set_unscaled(tot = 1) \n Sets the parameter Tot. \n :param tot: integer Range: 0 to 65535 """ param = Conversions.decimal_value_to_str(tot) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SV:NAVic:NMESsage:NAV:TIME:CONVersion:UTC:TOT:UNSCaled {param}')
[docs] def get_value(self) -> int: """SCPI: [SOURce<HW>]:BB:GNSS:SV:NAVic:NMESsage:NAV:TIME:CONVersion:UTC:TOT \n Snippet: value: int = driver.source.bb.gnss.sv.navic.nmessage.nav.time.conversion.utc.tot.get_value() \n Sets the parameter Tot. \n :return: tot: integer Range: 0 to 65535 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:SV:NAVic:NMESsage:NAV:TIME:CONVersion:UTC:TOT?') return Conversions.str_to_int(response)
[docs] def set_value(self, tot: int) -> None: """SCPI: [SOURce<HW>]:BB:GNSS:SV:NAVic:NMESsage:NAV:TIME:CONVersion:UTC:TOT \n Snippet: driver.source.bb.gnss.sv.navic.nmessage.nav.time.conversion.utc.tot.set_value(tot = 1) \n Sets the parameter Tot. \n :param tot: integer Range: 0 to 65535 """ param = Conversions.decimal_value_to_str(tot) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:SV:NAVic:NMESsage:NAV:TIME:CONVersion:UTC:TOT {param}')