Search found 2 matches

by fmauch
Thu 19. May 2016, 13:20
Forum: Linux
Topic: Error codes in linux driver
Replies: 3
Views: 7149

Re: Error codes in linux driver

Hi, thank you for the quick answer.

So I check the return value of LINUX_CAN_Read_Timeout() against the error codes? So is the error code returned in the CAN message redundant to that return value or will only those >8 bit errors be returned?

Cheers
Felix
by fmauch
Thu 19. May 2016, 09:11
Forum: Linux
Topic: Error codes in linux driver
Replies: 3
Views: 7149

Error codes in linux driver

Hello,

I have a question regarding the error handling in the peak-linux-driver with char devices:

The pcan-API defines certain error codes of length 2 bytes. However, the user manual states that:

"Depending on the kind of error detailed CAN_ERR_... information is
set in the DATA[3] field of the ...