Skip to main content

Constant Definitions

Constant Definitions

The following constants are available.

DefinitionConstant Names
Error codesMPX_COUT_*
Message protocolMPX_COUT_LOGTYPE_*
Message directionMPX_COUT_DIR_*
Frame typeMPX_COUT_RTR_*
Thread typeMPX_COUT_THREAD_*
CAN ID typeMPX_COUT_CAN_ID_*
Callout custom parameter data typesCALLOUT_TYPE_*
Bit alignmentCALLOUT_ALIGN_*
Byte endiannessCALLOUT_ENDIAN_*

Error Codes

ConstantDescription
MPX_COUT_OKNormal
MPX_COUT_OVERATTEMPTMAC verification attempts exceeded
MPX_COUT_FVDROPFV discarded
MPX_COUT_CFGERRConfiguration value error
MPX_COUT_ILLEGALMACInvalid MAC value
MPX_COUT_ILLEGALFVInvalid FV value
MPX_COUT_ERROROther errors

Message Protocol

ConstantDescription
MPX_COUT_LOGTYPE_NONEInvalid
MPX_COUT_LOGTYPE_CANCAN message
MPX_COUT_LOGTYPE_CANFDCAN-FD message (BRS enabled)
MPX_COUT_LOGTYPE_CANFD_NOBRSCAN-FD message (BRS disabled)

Message Direction

ConstantDescription
MPX_COUT_DIR_RXReceived message
MPX_COUT_DIR_TXTransmitted message

Frame Type

ConstantDescription
MPX_COUT_RTR_DATAData frame
MPX_COUT_RTR_REMOTERemote frame

Thread Type

ConstantDescription
MPX_COUT_THREAD_MONMonitor thread
MPX_COUT_THREAD_SENDTransmit thread

CAN ID Type

ConstantDescription
MPX_COUT_CAN_ID_STDStandard ID
MPX_COUT_CAN_ID_EXTExtended ID

Callout Custom Parameter Data Types

ConstantDescription
CALLOUT_TYPE_S88-bit signed integer
CALLOUT_TYPE_S1616-bit signed integer
CALLOUT_TYPE_S3232-bit signed integer
CALLOUT_TYPE_S6464-bit signed integer
CALLOUT_TYPE_U88-bit unsigned integer (*1)
CALLOUT_TYPE_U1616-bit unsigned integer
CALLOUT_TYPE_U3232-bit unsigned integer
CALLOUT_TYPE_U6464-bit unsigned integer
CALLOUT_TYPE_CHAR1-byte character (*1)

*1: Use either of these for strings.

Bit Alignment

ConstantDescription
CALLOUT_ALIGN_LEFTLeft aligned
CALLOUT_ALIGN_RIGHTRight aligned

Byte Endianness

ConstantDescription
CALLOUT_ENDIAN_BIGBig-endian
CALLOUT_ENDIAN_LITTLELittle-endian