Set Can Cabs Mode
Syntax
long setCanCabsMode(long ntype,long nchannel,long nmode,long nflags);
Function
Various CANcabs modes may be set. Replaces thesetPortBits functions.
Parameters
ntype Unused, must be set to 0
nchannel
CAN channel
nmode
Is used for the control of the board lines via a bit pattern. Mode, valid values: ForCANcab Evatwo output lines can be set.
nflags
Is used for the control of the board lines via a bit pattern. Flag, valid values:
Not all mode and flag values are valid for all CANcabs!
Return Values
0: ok
!=0: Error
on key 'n'{long ntype, nmode, nchannel, nflags;ntype = 0;nmode = 0;nchannel = 1;nflags = 0;setCanCabsMode(ntype, nchannel, nmode, nflags);write("normal mode");}
setPortBits - Single Wire | setPortBits - low-speed