CAPL Script

Get Chip Type

Syntax

long getChipType(long channel);

Function

Determines the type of CAN controller used.

Parameters

CAN channel

Return Values

Type of controller with the following values: Other types may occur. DEMO versions return the result 0 or simulate one of the existing types. If an attempt is made to access a nonexistent channel (e.g. Channel 2 for CPC/PP) or if the driver used does not support this function, the functional result is 0.

...switch(getChipType(0)) {case 200: setOcr(0,0x02);break;case ...default:write("Unknown CAN-chip %d", getChipType(0));break;}...

getCardTypeEx