[docs]defset(self,fcontrol:str,frameBlock=repcap.FrameBlock.Default,userIx=repcap.UserIx.Default)->None:"""SCPI: [SOURce<HW>]:BB:WLNN:FBLock<CH>:[USER<DI>]:MAC:FCONtrol \n Snippet: driver.source.bb.wlnn.fblock.user.mac.fcontrol.set(fcontrol = rawAbc, frameBlock = repcap.FrameBlock.Default, userIx = repcap.UserIx.Default) \n The command enters the value of the frame control field. The frame control field has a length of 2 bytes (16 bits) and is used to define the protocol version, the frame type, and its function, etc.. As an alternative, the individual bits can be set with the following commands. \n :param fcontrol: integer Range: #H0000,16 to #HFFFF,16 :param frameBlock: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Fblock') :param userIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'User') """param=Conversions.value_to_str(fcontrol)frameBlock_cmd_val=self._cmd_group.get_repcap_cmd_value(frameBlock,repcap.FrameBlock)userIx_cmd_val=self._cmd_group.get_repcap_cmd_value(userIx,repcap.UserIx)self._core.io.write(f'SOURce<HwInstance>:BB:WLNN:FBLock{frameBlock_cmd_val}:USER{userIx_cmd_val}:MAC:FCONtrol {param}')
[docs]defget(self,frameBlock=repcap.FrameBlock.Default,userIx=repcap.UserIx.Default)->str:"""SCPI: [SOURce<HW>]:BB:WLNN:FBLock<CH>:[USER<DI>]:MAC:FCONtrol \n Snippet: value: str = driver.source.bb.wlnn.fblock.user.mac.fcontrol.get(frameBlock = repcap.FrameBlock.Default, userIx = repcap.UserIx.Default) \n The command enters the value of the frame control field. The frame control field has a length of 2 bytes (16 bits) and is used to define the protocol version, the frame type, and its function, etc.. As an alternative, the individual bits can be set with the following commands. \n :param frameBlock: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Fblock') :param userIx: optional repeated capability selector. Default value: Nr1 (settable in the interface 'User') :return: fcontrol: integer Range: #H0000,16 to #HFFFF,16"""frameBlock_cmd_val=self._cmd_group.get_repcap_cmd_value(frameBlock,repcap.FrameBlock)userIx_cmd_val=self._cmd_group.get_repcap_cmd_value(userIx,repcap.UserIx)response=self._core.io.query_str(f'SOURce<HwInstance>:BB:WLNN:FBLock{frameBlock_cmd_val}:USER{userIx_cmd_val}:MAC:FCONtrol?')returntrim_str_response(response)
defclone(self)->'FcontrolCls':"""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=FcontrolCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group