Source code for RsSmbv.Implementations.Source.Bb.Eutra.Downlink.Niot.Ccoding

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from .......Internal.Utilities import trim_str_response


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class CcodingCls: """Ccoding commands group definition. 7 total commands, 0 Subgroups, 7 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("ccoding", core, parent)
[docs] def get_mib(self) -> bool: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:CCODing:MIB \n Snippet: value: bool = driver.source.bb.eutra.downlink.niot.ccoding.get_mib() \n Enables transmission of MIB data. \n :return: mib_state: 1| ON| 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:CCODing:MIB?') return Conversions.str_to_bool(response)
[docs] def set_mib(self, mib_state: bool) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:CCODing:MIB \n Snippet: driver.source.bb.eutra.downlink.niot.ccoding.set_mib(mib_state = False) \n Enables transmission of MIB data. \n :param mib_state: 1| ON| 0| OFF """ param = Conversions.bool_to_str(mib_state) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:NIOT:CCODing:MIB {param}')
[docs] def get_mspare(self) -> str: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:CCODing:MSPare \n Snippet: value: str = driver.source.bb.eutra.downlink.niot.ccoding.get_mspare() \n Sets the 11 spare bits in the NPBCH transmission. \n :return: mib_spare_bits: 11-bits """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:CCODing:MSPare?') return trim_str_response(response)
[docs] def set_mspare(self, mib_spare_bits: str) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:CCODing:MSPare \n Snippet: driver.source.bb.eutra.downlink.niot.ccoding.set_mspare(mib_spare_bits = rawAbc) \n Sets the 11 spare bits in the NPBCH transmission. \n :param mib_spare_bits: 11-bits """ param = Conversions.value_to_str(mib_spare_bits) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:NIOT:CCODing:MSPare {param}')
[docs] def get_ncid(self) -> int: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:CCODing:NCID \n Snippet: value: int = driver.source.bb.eutra.downlink.niot.ccoding.get_ncid() \n Queries the NCell ID. \n :return: ncell_id: integer Range: 0 to 503 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:CCODing:NCID?') return Conversions.str_to_int(response)
[docs] def get_rsib(self) -> int: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:CCODing:RSIB \n Snippet: value: int = driver.source.bb.eutra.downlink.niot.ccoding.get_rsib() \n Queries the number of repetitions of the NDPSCH that carries SIB1-NB. \n :return: repetition_sib_1: integer Range: 0 to 16 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:CCODing:RSIB?') return Conversions.str_to_int(response)
[docs] def get_sib(self) -> int: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:CCODing:SIB \n Snippet: value: int = driver.source.bb.eutra.downlink.niot.ccoding.get_sib() \n Sets the parameter scheduling info SIB1. \n :return: scheduling_sib_1: integer Range: 0 to 15 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:CCODing:SIB?') return Conversions.str_to_int(response)
[docs] def set_sib(self, scheduling_sib_1: int) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:CCODing:SIB \n Snippet: driver.source.bb.eutra.downlink.niot.ccoding.set_sib(scheduling_sib_1 = 1) \n Sets the parameter scheduling info SIB1. \n :param scheduling_sib_1: integer Range: 0 to 15 """ param = Conversions.decimal_value_to_str(scheduling_sib_1) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:NIOT:CCODing:SIB {param}')
[docs] def get_soffset(self) -> float: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:CCODing:SOFFset \n Snippet: value: float = driver.source.bb.eutra.downlink.niot.ccoding.get_soffset() \n Sets the start SFN value. \n :return: sfn_offset: float Range: 0 to 1020 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:CCODing:SOFFset?') return Conversions.str_to_float(response)
[docs] def set_soffset(self, sfn_offset: float) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:CCODing:SOFFset \n Snippet: driver.source.bb.eutra.downlink.niot.ccoding.set_soffset(sfn_offset = 1.0) \n Sets the start SFN value. \n :param sfn_offset: float Range: 0 to 1020 """ param = Conversions.decimal_value_to_str(sfn_offset) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:NIOT:CCODing:SOFFset {param}')
[docs] def get_stfsib_1(self) -> int: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:CCODing:STFSib1 \n Snippet: value: int = driver.source.bb.eutra.downlink.niot.ccoding.get_stfsib_1() \n Queries the first frame in that the NPDSCH transmission carrying SIB1-NB is allocated. \n :return: sib_1_start_frame: integer Range: 0 to 11 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:NIOT:CCODing:STFSib1?') return Conversions.str_to_int(response)