USB-CANmodul
46
SYS TEC electronic GmbH 2001 L-487e_6
UcanSetBaudrate
Syntax:
BYTE STDCALL UcanSetBaudrate (tUcanHandle UcanHandle_p,
BYTE bBTR0_p, BYTE bBTR1_p);
Usability:
CAN_INIT
Parameter:
UcanHandle_p: USB-CAN handle received with the function
UcanInitHardware ().
bBTR0_p: Baud rate register 0
bBTR1_p: Baud rate register 1
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:
Changes the baud rate configuration of the USB-CANmodul.