CAPL Script

Is Std Ld

This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.

Syntax

long isStdId(dword id);

long isStdId(message m);

long isExtId(dword id);

long isExtId(message m);

Function

Checks parameter forextended identifier(29 bit) or standard identifier (11 Bit).

Parameters

Variable of typemessage.

Id part of a message

Return Values

1 if check was successful, else 0

Reference example from the CANoe 12 help. This is an incomplete context fragment: omitted surrounding code is shown as comments. Do not paste it as a complete program.

// ... surrounding context omitted

if(isExtId(this))
write("extended identifier");
else
write("standard identifier");

Alternatively, inspect the identifier of an existing message variable:

std = isStdId(m100.id);