Can anyone please tell me what the return values could be? I see it returns a DWORD, but what possible return values could it have and under what circumstances (what would they mean.)
The CANWaitRxEvent() function calls the WaitForSingleObject() API to wait for the CAN data receive event, then returns the value returned by WaitForSingleObject().
We'll update our documentation to clarify this issue in the future.