Source code for RsSmw.Implementations.Source.Bb.Nr5G.Node.Cell.SyInfo.Hacbook

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


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

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

	# noinspection PyTypeChecker
[docs] def get(self, cellNull=repcap.CellNull.Default) -> enums.AllHarqAckCodebook: """ ``[SOURce<HW>]:BB:NR5G:NODE:CELL<CC(CH0)>:SYINfo:HACBook`` \n Snippet: ``value: enums.AllHarqAckCodebook = driver.source.bb.nr5G.node.cell.syInfo.hacbook.get(cellNull = repcap.CellNull.Default)`` \n Defines the HARQ ACK reporting according to the PDSCH HARQ ACK codebook. :param cellNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Cell') :return: harq_ack_codebook: SEMistatic | DYNamic SEMistatic Sets the HARQ ACK reporting according to the PDSCH HARQ ACK codebook to 'Semi-static'. A UE reports HARQ ACK information for a corresponding PDSCH reception or SPS PDSCH release only in a HARQ ACK codebook that the UE transmits in a slot indicated by a value of a PDSCH-to- HARQ feedback timing indicator field in a corresponding DCI format 1_0 or DCI format 1_1. The UE reports NACK values for HARQ-ACK information bits in an HARQ-ACK codebook that the UE transmits in a slot not indicated by a value of a PDSCH-to-HARQ feedback timing indicator field in a corresponding DCI format 1_0 or DCI format 1_1. DYNamic Sets the HARQ ACK reporting according to the PDSCH HARQ ACK codebook to 'dynamic'. For a serving cell, an active DL BWP, and an active UL BWP, as described in clause 12, the UE determines a set of occasions for candidate PDSCH receptions for which the UE can transmit corresponding HARQ ACK information in a PUCCH in slot . If serving cell is deactivated, the UE uses as the active DL BWP for determining the set of occasions for candidate PDSCH receptions a DL BWP provided by firstActiveDownlinkBWP-ID. """ cellNull_cmd_val = self._cmd_group.get_repcap_cmd_value(cellNull, repcap.CellNull) response = self._core.io.query_str(f'SOURce<HwInstance>:BB:NR5G:NODE:CELL{cellNull_cmd_val}:SYINfo:HACBook?') return Conversions.str_to_scalar_enum(response, enums.AllHarqAckCodebook)