Source code for RsSmbv.Implementations.Source.Bb.Gnss.Galileo.Osnma.AesKey

from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
from .......Internal import Conversions
from ....... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class AesKeyCls: """AesKey commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("aesKey", core, parent) # noinspection PyTypeChecker
[docs] def get_length(self) -> enums.OsnmaAes: """SCPI: [SOURce<HW>]:BB:GNSS:GALileo:OSNMa:AESKey:LENGth \n Snippet: value: enums.OsnmaAes = driver.source.bb.gnss.galileo.osnma.aesKey.get_length() \n No command help available \n :return: key_length: No help available """ response = self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:GALileo:OSNMa:AESKey:LENGth?') return Conversions.str_to_scalar_enum(response, enums.OsnmaAes)
[docs] def set_length(self, key_length: enums.OsnmaAes) -> None: """SCPI: [SOURce<HW>]:BB:GNSS:GALileo:OSNMa:AESKey:LENGth \n Snippet: driver.source.bb.gnss.galileo.osnma.aesKey.set_length(key_length = enums.OsnmaAes.AES128) \n No command help available \n :param key_length: No help available """ param = Conversions.enum_scalar_to_str(key_length, enums.OsnmaAes) self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:GALileo:OSNMa:AESKey:LENGth {param}')