Skip to main content
Open topic with navigation CAPL Functions » MOST » mostMsgEncodeRLE

mostMsgEncodeRLE

Valid for: CANoe DE

Function Syntax

long mostMsgEncodeRLE(mostAmsMessage * msg, long fktIds[], long size);

Description

mostMsgEncodeRLE() encodes a list of function IDs and saves it in the data area of a message. Run Length Encoding in accordance with MOST Specification 2.4 Para. 2.3.9 is used. This function is suitable for compiling messages of the FBlock.FktIds.Status type.

Parameters

  • msg: Message, which is to have data input into it.
  • fktIds[]: List of function IDs (can be unsorted).
  • size: Number of function IDs in fktIds[].

Return Values

See error codes

Example

mostMsgDecodeRLEmostMsgSet