CAPL Script

Chip State

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 ChipState ()

Method

CANx.ChipState

Function

Returns the current chip state of the CAN x controller.

Valid x values: 1…32

Parameters

—

Return Values

Chip state of the CAN x controller. See the following table for a description of the return values.

ValueMeaning (CANoe 12 reference)

0

Value not available

1

Simulated

2

Not used

3

Error Active

4

Warning Level

5

Error Passive

6

Bus Off

A description of the chip states can also be found here: Bus Statistics Window of option CAN.

write ("Chip state of CAN1 = %d", CAN1.ChipState);

Source detail restored from the authorized CANoe 12 help. Hardware support and API availability must be checked against the installed product version.