CanStopNotifyEvent


Function

Disable received data notifications.

Format

Ret = CanStopNotifyEvent ( Id , ChannelNo , EventType )

Parameters

Id [ C: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved from CanInit.

ChannelNo [ C: unsigned short ] [ Python: ctypes.c_ushort ]
Specify the channel number.

EventType [ C: unsigned short ] [ Python: ctypes.c_ushort ]
Specify the event type.

Definition

Value
[Hex]

Description

CCAN_EVENT_RECEIVE

0x01

Reception event

Return Value

Ret [ C: long ] [ Python: ctypes.c_long ]

Definition

Value
[Dec]

Description

CAN_ERR_SUCCESS

0

Normality completion

CAN_ERR_DLL_INVALID_ID

10001

Invalid ID was specified.

CAN_ERR_DLL_CALL_DRIVER

10002

Driver can't be called (Failed in the ioctl).

CAN_ERR_SYS_CH_NO

20101

Channel number is outside the settable range.

CAN_ERR_DLL_EVENT_TYPE

10300

Event type beyond the limit.

The others (See also: Details of Error Code)

Initial Value

None

Remarks

Disable the notification registered using the CanNotifyEvent function.

Example

Disable calling the callback function when a message is received (CCAN_EVENT_RECEIVE) for ChannelNo = 1.

C

long Ret;

Ret = CanStopNotifyEvent ( Id , 1 , CCAN_EVENT_RECEIVE );
 

Python

Ret = ctypes.long()

Ret.value = ccan.CanStopNotifyEvent ( Id , 1 , CCAN_EVENT_RECEIVE )

See Also

CanNotifyEvent