Constant Definitions
The following constants are available.
| Definition | Constant Names |
|---|
| Error codes | MPX_COUT_* |
| Message protocol | MPX_COUT_LOGTYPE_* |
| Message direction | MPX_COUT_DIR_* |
| Frame type | MPX_COUT_RTR_* |
| Thread type | MPX_COUT_THREAD_* |
| CAN ID type | MPX_COUT_CAN_ID_* |
| Callout custom parameter data types | CALLOUT_TYPE_* |
| Bit alignment | CALLOUT_ALIGN_* |
| Byte endianness | CALLOUT_ENDIAN_* |
Error Codes
| Constant | Description |
|---|
| MPX_COUT_OK | Normal |
| MPX_COUT_OVERATTEMPT | MAC verification attempts exceeded |
| MPX_COUT_FVDROP | FV discarded |
| MPX_COUT_CFGERR | Configuration value error |
| MPX_COUT_ILLEGALMAC | Invalid MAC value |
| MPX_COUT_ILLEGALFV | Invalid FV value |
| MPX_COUT_ERROR | Other errors |
Message Protocol
| Constant | Description |
|---|
| MPX_COUT_LOGTYPE_NONE | Invalid |
| MPX_COUT_LOGTYPE_CAN | CAN message |
| MPX_COUT_LOGTYPE_CANFD | CAN-FD message (BRS enabled) |
| MPX_COUT_LOGTYPE_CANFD_NOBRS | CAN-FD message (BRS disabled) |
Message Direction
| Constant | Description |
|---|
| MPX_COUT_DIR_RX | Received message |
| MPX_COUT_DIR_TX | Transmitted message |
Frame Type
| Constant | Description |
|---|
| MPX_COUT_RTR_DATA | Data frame |
| MPX_COUT_RTR_REMOTE | Remote frame |
Thread Type
| Constant | Description |
|---|
| MPX_COUT_THREAD_MON | Monitor thread |
| MPX_COUT_THREAD_SEND | Transmit thread |
CAN ID Type
| Constant | Description |
|---|
| MPX_COUT_CAN_ID_STD | Standard ID |
| MPX_COUT_CAN_ID_EXT | Extended ID |
Callout Custom Parameter Data Types
| Constant | Description |
|---|
| CALLOUT_TYPE_S8 | 8-bit signed integer |
| CALLOUT_TYPE_S16 | 16-bit signed integer |
| CALLOUT_TYPE_S32 | 32-bit signed integer |
| CALLOUT_TYPE_S64 | 64-bit signed integer |
| CALLOUT_TYPE_U8 | 8-bit unsigned integer (*1) |
| CALLOUT_TYPE_U16 | 16-bit unsigned integer |
| CALLOUT_TYPE_U32 | 32-bit unsigned integer |
| CALLOUT_TYPE_U64 | 64-bit unsigned integer |
| CALLOUT_TYPE_CHAR | 1-byte character (*1) |
*1: Use either of these for strings.
Bit Alignment
| Constant | Description |
|---|
| CALLOUT_ALIGN_LEFT | Left aligned |
| CALLOUT_ALIGN_RIGHT | Right aligned |
Byte Endianness
| Constant | Description |
|---|
| CALLOUT_ENDIAN_BIG | Big-endian |
| CALLOUT_ENDIAN_LITTLE | Little-endian |