Skip to main content

AfdxGetTokenReal

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

Description

This function returns the specified token’s data as a float value.

Parameters

  • packet: Handle of the message that has been created with AfdxInitPacket or from within a callback.
  • protocolDesignator: Name of the protocol, e.g. “udp”.
  • tokenDesignator: Name of the token, e.g. “data”.
  • offset: This is the offset from the beginning of the token’s data area. If this is 0, data is copied starting at byte 0 of the token’s data area.
  • length: The values 4 (32-bit float value) and 8 (64-bit float value) are allowed here. This is the length of the value to be returned from the token’s data area.

Return Values

Integer value gathered from the token’s data. With AfdxGetLastError you have to check if the function has been processed successfully.

Example