Set Pdu Bits Element

Sets the value of specific bits within a PDU (Protocol Data Unit) contained in a frame for a given channel.

Arguments Description

pdu_path (str): The path to the PDU in the format “channel::frame::pdu”.

bit_path (str): The path to the specific bits within the PDU in the format

“start_bit::number_of_bits::bit_order”. bit_order:(0:’little_endian’,1:’big_endian’).

bits_value (Union[int, List[int]]): The value(s) to set for the specified bits. This can be a single integer

or a list of integers if multiple values are to be set.

update_and_send (bool, optional): Whether to update and send the frame after setting the value.

Defaults to True.

Returns

bool: True if the operation was successful; otherwise, False .

Example

${value} Create List ${216} ${110}
Set Pdu Bits Element ${ChannelName}::${FrameId}::${PduName} ${start_bit}::${number_of_bits}::${bit_order} ${value} ${True}