[docs]classEmtcCls:"""Emtc commands group definition. 7 total commands, 1 Subgroups, 2 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("emtc",core,parent)@propertydefcelv(self):"""celv commands group. 5 Sub-classes, 0 commands."""ifnothasattr(self,'_celv'):from.CelvimportCelvClsself._celv=CelvCls(self._core,self._cmd_group)returnself._celv
[docs]defget_hoff(self)->int:"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PRACh:EMTC:HOFF \n Snippet: value: int = driver.source.bb.eutra.uplink.prach.emtc.get_hoff() \n Sets a PRACH hopping offset as number of resource blocks (RB) . \n :return: hopping_offset: integer Range: 1 to 110 """response=self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PRACh:EMTC:HOFF?')returnConversions.str_to_int(response)
[docs]defset_hoff(self,hopping_offset:int)->None:"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PRACh:EMTC:HOFF \n Snippet: driver.source.bb.eutra.uplink.prach.emtc.set_hoff(hopping_offset = 1) \n Sets a PRACH hopping offset as number of resource blocks (RB) . \n :param hopping_offset: integer Range: 1 to 110 """param=Conversions.decimal_value_to_str(hopping_offset)self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:PRACh:EMTC:HOFF {param}')
# noinspection PyTypeChecker
[docs]defget_rset(self)->enums.EutraPrachPreambleSet:"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PRACh:EMTC:RSET \n Snippet: value: enums.EutraPrachPreambleSet = driver.source.bb.eutra.uplink.prach.emtc.get_rset() \n Enables using the restricted set. \n :return: restricted_set: URES| ARES| BRES| OFF| ON URES|OFF Unrestricted preamble set. ARES|ON Restricted set type A. BRES Restricted set type B. """response=self._core.io.query_str('SOURce<HwInstance>:BB:EUTRa:UL:PRACh:EMTC:RSET?')returnConversions.str_to_scalar_enum(response,enums.EutraPrachPreambleSet)
[docs]defset_rset(self,restricted_set:enums.EutraPrachPreambleSet)->None:"""SCPI: [SOURce<HW>]:BB:EUTRa:UL:PRACh:EMTC:RSET \n Snippet: driver.source.bb.eutra.uplink.prach.emtc.set_rset(restricted_set = enums.EutraPrachPreambleSet.ARES) \n Enables using the restricted set. \n :param restricted_set: URES| ARES| BRES| OFF| ON URES|OFF Unrestricted preamble set. ARES|ON Restricted set type A. BRES Restricted set type B. """param=Conversions.enum_scalar_to_str(restricted_set,enums.EutraPrachPreambleSet)self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:UL:PRACh:EMTC:RSET {param}')
defclone(self)->'EmtcCls':"""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=EmtcCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group