Skip to main content

Constant Definitions (LIN)

This section describes LIN-specific constant definitions used by this product.

Main APIs

Definition List

ItemConstant Name
LIN Operation ModeMPX_LIN_MODE_*
LIN RevisionMPX_LIN_REV_*
LIN Checksum TypeMPX_LIN_PARAM_CS_*
LIN Simulation Enable/DisableMPX_LIN_SIM_*
LIN Frame TypeMPX_LIN_FRAME_TYPE_*
LIN Log TypeMPX_LIN_LOG_TYPE_*
LIN Error CodeMPX_LIN_ERR_*
LIN StatusMPX_LIN_STS_*

Definition Details (LIN)

LIN Operation Mode

Constant NameValueDescription
MPX_LIN_MODE_MONITOR0 (0x0)Monitor mode
MPX_LIN_MODE_MASTER1 (0x1)Master simulation mode
MPX_LIN_MODE_MASTER_NOSLEEP2 (0x2)Master simulation mode (no Sleep)
MPX_LIN_MODE_SLAVE3 (0x3)Slave simulation mode
MPX_LIN_MODE_NONE255 (0xFF)No operation

LIN Revision

Constant NameValueDescription
MPX_LIN_REV_130 (0x0)Rev. 1.3
MPX_LIN_REV_201 (0x1)Rev. 2.0
MPX_LIN_REV_212 (0x2)Rev. 2.1
MPX_LIN_REV_223 (0x3)Rev. 2.2

LIN Checksum Type

Constant NameValueDescription
MPX_LIN_PARAM_CS_CLASSIC0 (0x0)Classic checksum
MPX_LIN_PARAM_CS_ENHANCED1 (0x1)Enhanced checksum

LIN Simulation Enable/Disable

Constant NameValueDescription
MPX_LIN_SIM_DIS0 (0x0)Schedule/one-time disabled
MPX_LIN_SIM_ENA1 (0x1)Schedule/one-time enabled

LIN Frame Type

Constant NameValueDescription
MPX_LIN_FRAME_TYPE_WAKEUP3 (0x3)Wakeup pulse
MPX_LIN_FRAME_TYPE_SLEEP4 (0x4)Sleep command
MPX_LIN_FRAME_TYPE_TX5 (0x5)Transmit
MPX_LIN_FRAME_TYPE_RX6 (0x6)Receive

LIN Log Type

Constant NameValueDescription
MPX_LIN_LOG_TYPE_HEADER1 (0x1)Header
MPX_LIN_LOG_TYPE_RESPONSE2 (0x2)Response
MPX_LIN_LOG_TYPE_WAKEUP3 (0x3)Wakeup pulse
MPX_LIN_LOG_TYPE_SLEEP4 (0x4)Sleep command
MPX_LIN_LOG_TYPE_BUS7 (0x7)Bus error
MPX_LIN_LOG_TYPE_BUSSLEEP9 (0x9)Bus sleep

LIN Error Code

Constant NameValueDescription
MPX_LIN_ERR_NONE0 (0x0)No error
MPX_LIN_ERR_SBL1 (0x1)SynchBreak Too Long
MPX_LIN_ERR_SBS2 (0x2)SynchBreak Too Short
MPX_LIN_ERR_PARITY3 (0x3)Parity Err.
MPX_LIN_ERR_SHORT4 (0x4)Short Msg.
MPX_LIN_ERR_CHKSUM5 (0x5)CheckSum Err.
MPX_LIN_ERR_NORES6 (0x6)Slave Not Responding
MPX_LIN_ERR_BIT7 (0x7)Bit Err.
MPX_LIN_ERR_FRAMING8 (0x8)Framing Err.
MPX_LIN_ERR_SFIELD9 (0x9)SynchField Err.
MPX_LIN_ERR_HTIMEOUT10 (0xA)Header Timeout
MPX_LIN_ERR_UART11 (0xB)UART Err. (other than Framing Err.)

LIN Status

Constant NameValueDescription
MPX_LIN_STS_RUN0 (0x0)Run (Awake) state
MPX_LIN_STS_SLEEP1 (0x1)Sleep state