Software
SYS TEC electronic GmbH 2001 L-487e_6
39
UcanResetCan
Syntax:
BYTE STDCALL UcanResetCan (tUcanHandle UcanHandle_p);
Usability:
CAN_INIT
Parameter:
UcanHandle_p: USB-CAN handle received with the function
UcanInitHardware ().
Return value: Error code of the function.
USBCAN_SUCCESSFUL
USBCAN_ERR_MAXINSTANCES
USBCAN_ERR_ILLHANDLE
USBCAN_ERR_CANNOTINIT
USBCAN_ERR_BUSY
USBCAN_ERR_IOFAILED
USBCAN_ERRCMD_NOTEQU
USBCAN_ERRCMD_ILLCMD
Description:
Resets the CAN controller in the USB-CANmodul and erases the
CAN message buffer. This function needs to be called if a BUSOFF
event occurred.