Skip to main content

C2xSetTokenInt64

Open topic with navigation CAPL Functions » Car2x » C2xSetTokenInt64

Function Syntax

long C2xSetTokenInt64( long packet, char protocolDesignatorl[], char tokenDesignator[], int64 value ); // form 1
long C2xSetTokenInt64( long packet, char protocolDesignatorl[], char tokenDesignator[], long byteOffset, int64 length, long networkByteOrder, int64value ); // form 2

Description

This function sets the integer value of a token. Form 2 with byte offset sets a part of the token data as integer.

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. lpvSpeed.
  • byteOffset: Offset from the beginning of the token in byte.
  • length: Length of the integer value, up to 8 byte.
  • networkByteOrder:
    • 0: INTEL (little-endian)
    • 1: MOTOROLA (big-endian)
  • value: New integer value.

Return Values

Example

See example of C2xInitPacket.

See Also