Constant Definitions (LIN)
This section describes LIN-specific constant definitions used by this product.
Main APIs
Definition List
Definition Details (LIN)
LIN Operation Mode
| Constant Name | Value | Description |
|---|
| MPX_LIN_MODE_MONITOR | 0 (0x0) | Monitor mode |
| MPX_LIN_MODE_MASTER | 1 (0x1) | Master simulation mode |
| MPX_LIN_MODE_MASTER_NOSLEEP | 2 (0x2) | Master simulation mode (no Sleep) |
| MPX_LIN_MODE_SLAVE | 3 (0x3) | Slave simulation mode |
| MPX_LIN_MODE_NONE | 255 (0xFF) | No operation |
LIN Revision
| Constant Name | Value | Description |
|---|
| MPX_LIN_REV_13 | 0 (0x0) | Rev. 1.3 |
| MPX_LIN_REV_20 | 1 (0x1) | Rev. 2.0 |
| MPX_LIN_REV_21 | 2 (0x2) | Rev. 2.1 |
| MPX_LIN_REV_22 | 3 (0x3) | Rev. 2.2 |
LIN Checksum Type
| Constant Name | Value | Description |
|---|
| MPX_LIN_PARAM_CS_CLASSIC | 0 (0x0) | Classic checksum |
| MPX_LIN_PARAM_CS_ENHANCED | 1 (0x1) | Enhanced checksum |
LIN Simulation Enable/Disable
| Constant Name | Value | Description |
|---|
| MPX_LIN_SIM_DIS | 0 (0x0) | Schedule/one-time disabled |
| MPX_LIN_SIM_ENA | 1 (0x1) | Schedule/one-time enabled |
LIN Frame Type
| Constant Name | Value | Description |
|---|
| MPX_LIN_FRAME_TYPE_WAKEUP | 3 (0x3) | Wakeup pulse |
| MPX_LIN_FRAME_TYPE_SLEEP | 4 (0x4) | Sleep command |
| MPX_LIN_FRAME_TYPE_TX | 5 (0x5) | Transmit |
| MPX_LIN_FRAME_TYPE_RX | 6 (0x6) | Receive |
LIN Log Type
| Constant Name | Value | Description |
|---|
| MPX_LIN_LOG_TYPE_HEADER | 1 (0x1) | Header |
| MPX_LIN_LOG_TYPE_RESPONSE | 2 (0x2) | Response |
| MPX_LIN_LOG_TYPE_WAKEUP | 3 (0x3) | Wakeup pulse |
| MPX_LIN_LOG_TYPE_SLEEP | 4 (0x4) | Sleep command |
| MPX_LIN_LOG_TYPE_BUS | 7 (0x7) | Bus error |
| MPX_LIN_LOG_TYPE_BUSSLEEP | 9 (0x9) | Bus sleep |
LIN Error Code
| Constant Name | Value | Description |
|---|
| MPX_LIN_ERR_NONE | 0 (0x0) | No error |
| MPX_LIN_ERR_SBL | 1 (0x1) | SynchBreak Too Long |
| MPX_LIN_ERR_SBS | 2 (0x2) | SynchBreak Too Short |
| MPX_LIN_ERR_PARITY | 3 (0x3) | Parity Err. |
| MPX_LIN_ERR_SHORT | 4 (0x4) | Short Msg. |
| MPX_LIN_ERR_CHKSUM | 5 (0x5) | CheckSum Err. |
| MPX_LIN_ERR_NORES | 6 (0x6) | Slave Not Responding |
| MPX_LIN_ERR_BIT | 7 (0x7) | Bit Err. |
| MPX_LIN_ERR_FRAMING | 8 (0x8) | Framing Err. |
| MPX_LIN_ERR_SFIELD | 9 (0x9) | SynchField Err. |
| MPX_LIN_ERR_HTIMEOUT | 10 (0xA) | Header Timeout |
| MPX_LIN_ERR_UART | 11 (0xB) | UART Err. (other than Framing Err.) |
LIN Status
| Constant Name | Value | Description |
|---|
| MPX_LIN_STS_RUN | 0 (0x0) | Run (Awake) state |
| MPX_LIN_STS_SLEEP | 1 (0x1) | Sleep state |