TsctlCANRxMultiDesc

From embeddedTS Manuals

Blocks until at least min messages are received from CAN. The messages received are put into the CANMessage Array msg passed by the caller. Upon entry, the length of this Array must be equal to the maximum number of messages desired. Upon return, the length will be the actual number of messages received.

The return value will be the number of messages received, unless the receive was aborted, in which case a negative value will be returned. The latter could occur if Abort was explicitly called before the message was received, or if another error such as a Bus Off condition occurred.