Skip to main content

C2xGetThisValue16

CAPL Functions » Car2x » C2xGetThisValue16 Valid for: CANoe DE Note: This function is only usable in a CAPL callback that had been registered with C2xReceivePacket.

Function Syntax

long C2xGetThisValue16( long offset );

Description

This function reads the data of a received packet in Intel format.

Parameters

  • offset: Byte offset relative to the beginning of a data packet or the payload (see description above).

Return Values

Read value.

Example

void OnC2xPacket( long channel, long dir, long radioChannel, long signalStrength, long signalQuality, long packet )
{
  word value16;
  value16 = C2xGetThisValue16( 14 );
  write( "Value %d", value16 );
}

See Also