Skip to main content

coTfsArrToQ

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

Function Syntax

qword coTfsArrToQ( byte inByteArray[], dword arraysize );

Description

The function converts the content of a byte array into a qword value.

Parameters

  • inByteArray[]: Array containing the bytes to be converted, recommended array size: 8 byte.
  • arraysize: Size of the array.

Return Values

Converted value or 0 if parameters are invalid.

Example

/* converts data from a byte array to a qword */
Byte inDataArr[8] = {8,7,6,5,4,3,2,1};
qword outValue;

outValue = coTfsArrToQ(inDataArr, 8);