CanReset
The function CanReset resets the sja1000-controller and driver-state. The baudrate-setting is kept.
BOOL CanReset(int *data);
BOOL DCanReset(int devno,int *data);
Parameters
devno
Index of SJA1000-controller to use (starting with 0).
data
pointer to an integer-array (int[2]): OUT: baud[0] = driver status (error counter); baud[1] = controller status (sja1000 status-register).
Return Values
If this function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE. Additional error-information is availlable through CanGetLastError
Remarks
This function is called internally on driver-startup and CanSetBaudrate. It is only needed by an application to recover from an severe error.
Requirements
OS Versions: Windows CE 4.2 and later.
Header: gfcan32ce.h
Link Library: singlecan.lib (one sja1000-controller), dualcan.lib (two or more sja1000-controller)
See Also