[docs]classPatternCls:"""Pattern commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("pattern",core,parent)
[docs]defset(self,pattern:str,bitcount:int,allocationNull=repcap.AllocationNull.Default)->None:"""SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:ALLoc<CH0>:PATTern \n Snippet: driver.source.bb.eutra.downlink.niot.alloc.pattern.set(pattern = rawAbc, bitcount = 1, allocationNull = repcap.AllocationNull.Default) \n Sets a bit pattern as data source. \n :param pattern: numeric :param bitcount: integer Range: 1 to 64 :param allocationNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Alloc') """param=ArgSingleList().compose_cmd_string(ArgSingle('pattern',pattern,DataType.RawString),ArgSingle('bitcount',bitcount,DataType.Integer))allocationNull_cmd_val=self._cmd_group.get_repcap_cmd_value(allocationNull,repcap.AllocationNull)self._core.io.write(f'SOURce<HwInstance>:BB:EUTRa:DL:NIOT:ALLoc{allocationNull_cmd_val}:PATTern {param}'.rstrip())
[docs]defget(self,allocationNull=repcap.AllocationNull.Default)->PatternStruct:"""SCPI: [SOURce<HW>]:BB:EUTRa:DL:NIOT:ALLoc<CH0>:PATTern \n Snippet: value: PatternStruct = driver.source.bb.eutra.downlink.niot.alloc.pattern.get(allocationNull = repcap.AllocationNull.Default) \n Sets a bit pattern as data source. \n :param allocationNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Alloc') :return: structure: for return value, see the help for PatternStruct structure arguments."""allocationNull_cmd_val=self._cmd_group.get_repcap_cmd_value(allocationNull,repcap.AllocationNull)returnself._core.io.query_struct(f'SOURce<HwInstance>:BB:EUTRa:DL:NIOT:ALLoc{allocationNull_cmd_val}:PATTern?',self.__class__.PatternStruct())