Software
SYS TEC electronic GmbH 2001 L-487e_6
47
UcanSetAcceptance
Syntax:
BYTE STDCALL UcanSetAcceptance (tUcanHandle UcanHandle_p,
DWORD dwAMR_p, DWORD dwACR_p);
Usability:
CAN_INIT
Parameter:
UcanHandle_p: USB-CAN handle received with the function
UcanInitHardware ().
dwAMR_p: Acceptance Mask Register
dwACR_p: Acceptance Code Register
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 acceptance Mask Register of the USB-CANmodul.