linux

Message Flags

The following flags can be returned from canRead() et al, or passed to canWrite(). Note that you can combine one or more flags.

FlagMeaning
canMSG_RTRMessage is a remote request
canMSG_STDMessage has a standard (11-bit) identifier
canMSG_EXTMessage has a extended (29-bit) identifier
canMSG_ERROR_FRAMEMessage represents an error frame.

The following flags can be returned from canRead() et al, but can not be passed to canWrite():
FlagMeaning
canMSGERR_HW_OVERRUNHardware buffer overrun.
canMSGERR_SW_OVERRUNSoftware buffer overrun.

Note 1: Other canMSG_xxx and canMSGERR_xxx flags are reserved and must be zero when calling canWrite().

Note 2: Not all hardware platforms can detect the difference between hardware overruns and software overruns, so your application should test for both conditions. You can use the symbol canMSGERR_OVERRUN for this purpose.