Source code for RsSmbv.Implementations.Source.Bb.Eutra.Downlink.Emtc.Nb

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class NbCls: """Nb commands group definition. 9 total commands, 0 Subgroups, 9 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("nb", core, parent)
[docs] def get_hoffset(self) -> int: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:HOFFset \n Snippet: value: int = driver.source.bb.eutra.downlink.emtc.nb.get_hoffset() \n Sets the number of narrowbands between two consecutive MPDCCH or PDSCH hops. \n :return: hopping_offset: integer Range: 1 to 16 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:HOFFset?') return Conversions.str_to_int(response)
[docs] def set_hoffset(self, hopping_offset: int) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:HOFFset \n Snippet: driver.source.bb.eutra.downlink.emtc.nb.set_hoffset(hopping_offset = 1) \n Sets the number of narrowbands between two consecutive MPDCCH or PDSCH hops. \n :param hopping_offset: integer Range: 1 to 16 """ param = Conversions.decimal_value_to_str(hopping_offset) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:HOFFset {param}')
# noinspection PyTypeChecker
[docs] def get_hopping(self) -> enums.NumbersD: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:HOPPing \n Snippet: value: enums.NumbersD = driver.source.bb.eutra.downlink.emtc.nb.get_hopping() \n Sets the number of narrowbands over which MPDCCH or PDSCH hops. \n :return: num_nb_hopping: 2| 4 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:HOPPing?') return Conversions.str_to_scalar_enum(response, enums.NumbersD)
[docs] def set_hopping(self, num_nb_hopping: enums.NumbersD) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:HOPPing \n Snippet: driver.source.bb.eutra.downlink.emtc.nb.set_hopping(num_nb_hopping = enums.NumbersD._2) \n Sets the number of narrowbands over which MPDCCH or PDSCH hops. \n :param num_nb_hopping: 2| 4 """ param = Conversions.enum_scalar_to_str(num_nb_hopping, enums.NumbersD) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:HOPPing {param}')
# noinspection PyTypeChecker
[docs] def get_ivla(self) -> enums.EutraIotHoppingIvl: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:IVLA \n Snippet: value: enums.EutraIotHoppingIvl = driver.source.bb.eutra.downlink.emtc.nb.get_ivla() \n Sets the number of consecutive subframes during which MPDCCH or PDSCH stays at the same narrowband before hopping to another narrowband. \n :return: hopping_ivla: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:IVLA?') return Conversions.str_to_scalar_enum(response, enums.EutraIotHoppingIvl)
[docs] def set_ivla(self, hopping_ivla: enums.EutraIotHoppingIvl) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:IVLA \n Snippet: driver.source.bb.eutra.downlink.emtc.nb.set_ivla(hopping_ivla = enums.EutraIotHoppingIvl.H1) \n Sets the number of consecutive subframes during which MPDCCH or PDSCH stays at the same narrowband before hopping to another narrowband. \n :param hopping_ivla: H1| H2| H4| H5| H8| H10| H16| H20| H40 """ param = Conversions.enum_scalar_to_str(hopping_ivla, enums.EutraIotHoppingIvl) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:IVLA {param}')
# noinspection PyTypeChecker
[docs] def get_ivlb(self) -> enums.EutraIotHoppingIvl: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:IVLB \n Snippet: value: enums.EutraIotHoppingIvl = driver.source.bb.eutra.downlink.emtc.nb.get_ivlb() \n Sets the number of consecutive subframes during which MPDCCH or PDSCH stays at the same narrowband before hopping to another narrowband. \n :return: hopping_ivlb: H1| H2| H4| H5| H8| H10| H16| H20| H40 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:IVLB?') return Conversions.str_to_scalar_enum(response, enums.EutraIotHoppingIvl)
[docs] def set_ivlb(self, hopping_ivlb: enums.EutraIotHoppingIvl) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:IVLB \n Snippet: driver.source.bb.eutra.downlink.emtc.nb.set_ivlb(hopping_ivlb = enums.EutraIotHoppingIvl.H1) \n Sets the number of consecutive subframes during which MPDCCH or PDSCH stays at the same narrowband before hopping to another narrowband. \n :param hopping_ivlb: H1| H2| H4| H5| H8| H10| H16| H20| H40 """ param = Conversions.enum_scalar_to_str(hopping_ivlb, enums.EutraIotHoppingIvl) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:IVLB {param}')
[docs] def get_nn_bands(self) -> int: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:NNBands \n Snippet: value: int = driver.source.bb.eutra.downlink.emtc.nb.get_nn_bands() \n Queries the number of narrowbands. \n :return: num_narrowbands: integer Range: 1 to 16 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:NNBands?') return Conversions.str_to_int(response)
[docs] def get_phopping(self) -> bool: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:PHOPping \n Snippet: value: bool = driver.source.bb.eutra.downlink.emtc.nb.get_phopping() \n Enables hopping for the random access. \n :return: paging_hopping: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:PHOPping?') return Conversions.str_to_bool(response)
[docs] def set_phopping(self, paging_hopping: bool) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:PHOPping \n Snippet: driver.source.bb.eutra.downlink.emtc.nb.set_phopping(paging_hopping = False) \n Enables hopping for the random access. \n :param paging_hopping: 1| ON| 0| OFF """ param = Conversions.bool_to_str(paging_hopping) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:PHOPping {param}')
[docs] def get_pstnb(self) -> int: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:PSTNb \n Snippet: value: int = driver.source.bb.eutra.downlink.emtc.nb.get_pstnb() \n Sets the first used narrowband, if hoping is enabeld. \n :return: paging_starting_n: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:PSTNb?') return Conversions.str_to_int(response)
[docs] def set_pstnb(self, paging_starting_n: int) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:PSTNb \n Snippet: driver.source.bb.eutra.downlink.emtc.nb.set_pstnb(paging_starting_n = 1) \n Sets the first used narrowband, if hoping is enabeld. \n :param paging_starting_n: integer Range: 0 to 15 """ param = Conversions.decimal_value_to_str(paging_starting_n) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:PSTNb {param}')
[docs] def get_rhoppping(self) -> bool: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:RHOPpping \n Snippet: value: bool = driver.source.bb.eutra.downlink.emtc.nb.get_rhoppping() \n Enables hopping for the random access. \n :return: ra_hopping: 1| ON| 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:RHOPpping?') return Conversions.str_to_bool(response)
[docs] def set_rhoppping(self, ra_hopping: bool) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:RHOPpping \n Snippet: driver.source.bb.eutra.downlink.emtc.nb.set_rhoppping(ra_hopping = False) \n Enables hopping for the random access. \n :param ra_hopping: 1| ON| 0| OFF """ param = Conversions.bool_to_str(ra_hopping) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:RHOPpping {param}')
[docs] def get_rstnb(self) -> int: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:RSTNb \n Snippet: value: int = driver.source.bb.eutra.downlink.emtc.nb.get_rstnb() \n Sets the first used narrowband, if hoping is enabeld. \n :return: ra_starting_nb: integer Range: 0 to 15 """ response = self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:RSTNb?') return Conversions.str_to_int(response)
[docs] def set_rstnb(self, ra_starting_nb: int) -> None: """SCPI: [SOURce<HW>]:BB:EUTRa:DL:EMTC:NB:RSTNb \n Snippet: driver.source.bb.eutra.downlink.emtc.nb.set_rstnb(ra_starting_nb = 1) \n Sets the first used narrowband, if hoping is enabeld. \n :param ra_starting_nb: integer Range: 0 to 15 """ param = Conversions.decimal_value_to_str(ra_starting_nb) self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:EMTC:NB:RSTNb {param}')