|
Reads a message from the receive buffer. If no message is available after timeout milliseconds, the function returns canERR_NOMSG. There is no timeout if timeout is set to -1.
canOK (zero) if a message was read.
canERR_NOMSG (negative) if there was no message available.
canERR_xxx (negative) if failure.