The following flags can be returned from canRead() et al, or passed to canWrite(). Note that you can combine one or more flags.
| Flag | Meaning |
|---|---|
| canMSG_RTR | Message is a remote request |
| canMSG_STD | Message has a standard (11-bit) identifier |
| canMSG_EXT | Message has a extended (29-bit) identifier |
| canMSG_ERROR_FRAME | Message represents an error frame. |
The following flags can be returned from canRead() et al, but can not be passed to canWrite():
| Flag | Meaning |
|---|---|
| canMSGERR_HW_OVERRUN | Hardware buffer overrun. |
| canMSGERR_SW_OVERRUN | Software 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.