Skip to main content

C2xSetTokenBitOfBitString

Valid for: CANoe DE

Function Syntax

Description

This function sets a bit of a bit string that is specified either by its name (form 1) or by its position (form 2) to a new value. If the bit string does not yet contain the specified bit, the bit string is resized up to the specified bit. On resizing, the new bits before the specified bit are set to 0.

Parameters

  • packet: Handle of a packet that has been created with C2xInitPacket.
  • protocolDesignator: Name of the protocol, e.g. geo_cnh.
  • tokenDesignator: Name of the token, e.g. data.
  • namedBit: Name of the bit.
  • bitPosition: Zero based index of the bit.
  • value: New value of the bit.

Return Values

Example