Source code for RsSmbv.Implementations.Source.Bb.Nr5G.Hfb.Ethernet.IpAddress.Subnet

from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class SubnetCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("subnet", core, parent)

[docs] def get_mask(self) -> bytes: """ ``[SOURce<HW>]:BB:NR5G:HFB:ETHernet:IPADdress:SUBNet:MASK`` \n Snippet: ``value: bytes = driver.source.bb.nr5G.hfb.ethernet.ipAddress.subnet.get_mask()`` \n No help available """ response = self._core.io.query_bin_block('SOURce<HwInstance>:BB:NR5G:HFB:ETHernet:IPADdress:SUBNet:MASK?') return response
[docs] def set_mask(self, nr_5_gethernet_sub_net_mask: bytes) -> None: """ ``[SOURce<HW>]:BB:NR5G:HFB:ETHernet:IPADdress:SUBNet:MASK`` \n Snippet: ``driver.source.bb.nr5G.hfb.ethernet.ipAddress.subnet.set_mask(nr_5_gethernet_sub_net_mask = b'ABCDEFGH')`` \n No help available """ self._core.io.write_bin_block('SOURce<HwInstance>:BB:NR5G:HFB:ETHernet:IPADdress:SUBNet:MASK ', nr_5_gethernet_sub_net_mask)