[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,baseStation=repcap.BaseStation.Default,groupNull=repcap.GroupNull.Default,offset=repcap.Offset.Default)->None:"""SCPI: [SOURce<HW>]:BB:C2K:BSTation<ST>:CGRoup<DI0>:COFFset<CH>:DATA:PATTern \n Snippet: driver.source.bb.c2K.bstation.cgroup.coffset.data.pattern.set(pattern = rawAbc, bitcount = 1, baseStation = repcap.BaseStation.Default, groupNull = repcap.GroupNull.Default, offset = repcap.Offset.Default) \n Sets the bit pattern for the PATTern selection. The first parameter determines the bit pattern (choice of hexadecimal, octal or binary notation) , the second specifies the number of bits to use. For the traffic channels, this value is specific for the selected radio configuration. \n :param pattern: numeric :param bitcount: integer Range: 1 to 64 :param baseStation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bstation') :param groupNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Cgroup') :param offset: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Coffset') """param=ArgSingleList().compose_cmd_string(ArgSingle('pattern',pattern,DataType.RawString),ArgSingle('bitcount',bitcount,DataType.Integer))baseStation_cmd_val=self._cmd_group.get_repcap_cmd_value(baseStation,repcap.BaseStation)groupNull_cmd_val=self._cmd_group.get_repcap_cmd_value(groupNull,repcap.GroupNull)offset_cmd_val=self._cmd_group.get_repcap_cmd_value(offset,repcap.Offset)self._core.io.write(f'SOURce<HwInstance>:BB:C2K:BSTation{baseStation_cmd_val}:CGRoup{groupNull_cmd_val}:COFFset{offset_cmd_val}:DATA:PATTern {param}'.rstrip())
[docs]defget(self,baseStation=repcap.BaseStation.Default,groupNull=repcap.GroupNull.Default,offset=repcap.Offset.Default)->PatternStruct:"""SCPI: [SOURce<HW>]:BB:C2K:BSTation<ST>:CGRoup<DI0>:COFFset<CH>:DATA:PATTern \n Snippet: value: PatternStruct = driver.source.bb.c2K.bstation.cgroup.coffset.data.pattern.get(baseStation = repcap.BaseStation.Default, groupNull = repcap.GroupNull.Default, offset = repcap.Offset.Default) \n Sets the bit pattern for the PATTern selection. The first parameter determines the bit pattern (choice of hexadecimal, octal or binary notation) , the second specifies the number of bits to use. For the traffic channels, this value is specific for the selected radio configuration. \n :param baseStation: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Bstation') :param groupNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Cgroup') :param offset: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Coffset') :return: structure: for return value, see the help for PatternStruct structure arguments."""baseStation_cmd_val=self._cmd_group.get_repcap_cmd_value(baseStation,repcap.BaseStation)groupNull_cmd_val=self._cmd_group.get_repcap_cmd_value(groupNull,repcap.GroupNull)offset_cmd_val=self._cmd_group.get_repcap_cmd_value(offset,repcap.Offset)returnself._core.io.query_struct(f'SOURce<HwInstance>:BB:C2K:BSTation{baseStation_cmd_val}:CGRoup{groupNull_cmd_val}:COFFset{offset_cmd_val}:DATA:PATTern?',self.__class__.PatternStruct())