Skip to main content

Structure Definitions (for LIN)

This section describes LIN structure definitions for this product.

Main APIs​

Definition List​

Type NameDescription
StMPXLINIDSettingLIN ID setting information
StMPXLINParamLIN parameter setting information
StMPXLINLogLog information for LIN log acquisition API
StMPXLINFrameLIN frame information
StMPXLINMasterSimItemLIN master simulation information
StMPXLINMasterSimLIN master simulation information list
StMPXLINSlaveSimItemLIN slave simulation information
StMPXLINSlaveSimLIN slave simulation information list

Definition Details​

StMPXLINIDSetting​

Members of StMPXLINIDSetting (LIN ID setting information) are as follows.

Variable NameTypeDescriptionNotes
DLuint8_tData length (DL)Configurable range: 1 to 8
CheckSumTypeuint8_tChecksum typeFor values, see LIN Checksum Type.

StMPXLINParam​

Members of StMPXLINParam (LIN parameter setting information) are as follows.

Variable NameTypeDescriptionNotes
Modeuint8_tLIN operation modeFor values, see LIN Operation Mode.
Revisionuint8_tLIN revisionFor values, see LIN Revision.
Baudrateuint16_tBaud rate (bps)Configurable range: 500 to 20000
SyncBreakuint8_tSyncBreak width (bit)Configurable range: 10 to 26
Delimiteruint8_tSyncBreak delimiter width (bit)Configurable range: 1 to 20
HeaderSpaceuint8_tHeaderSpace width (bit)Configurable range: 0 to 20
ResponseSpaceuint8_tResponseSpace width (bit)Configurable range: 0 to 20
ByteSpaceuint8_tByteSpace width (bit)Configurable range: 1 to 20
Reserved1uint8_t [3]Reserved area 1 
WakeupWidthuint16_tWake-up pulse width (microseconds) 
WakeupWaituint16_tWake-up wait time (milliseconds)Configurable range: 0 to 100
SleepTimeuint16_tSleep time (milliseconds) 
Reserved2uint8_t [2]Reserved area 2 
IDSettingStMPXLINIDSetting [64]LIN ID setting informationElement index (0 to 63) corresponds to LIN ID (0x00 to 0x3F).
tip

The meaning of wake-up pulse width and sleep time differs by LIN revision.
For details, see Meaning of Wake-up Pulse Width and Sleep Time by LIN Revision.

StMPXLINLog​

Members of StMPXLINLog (log information for LIN log acquisition API) are as follows.

Variable NameTypeDescriptionNotes
mSecuint32_tTimestamp (milliseconds)Timestamp is represented by combining mSec and uSec values.
For example, for 12.345 ms (12 ms and 345 us), mSec is 12 and uSec is 345.
uSecuint16_tTimestamp (microseconds)
Protocoluint8_tProtocolFor value meanings, see Log Type.
Diruint8_tDirectionFor value meanings, see Log Direction.
IDuint8_tLIN ID 
SBLenuint8_tSyncBreak width 
WakeupWidthuint16_tWake-up pulse width 
Typeuint8_tLIN log typeFor value meanings, see LIN Log Type.
DLuint8_tData length (DL) 
Reserved1uint8_t [2]Reserved area 1 
ErrorCodeuint8_tError codeFor value meanings, see LIN Error Code.
Reserved2uint8_t [3]Reserved area 2 
Datauint8_t [64]DataElement index (0 to 7) corresponds to data D1 to D8. The element with the same index as DL is checksum.

StMPXLINFrame​

Members of StMPXLINFrame (LIN frame information) are as follows.

Variable NameTypeDescriptionNotes
IDuint8_tLIN IDConfigurable range: 0 (0x00) to 63 (0x3F)
DLuint8_tData length (DL)Configurable range: 1 to 8
ErrorCodeuint8_tError codeFor values, see LIN Error Code.
Reserveduint8_tReserved area 
Datauint8_t [8]DataElement index (0 to 7) corresponds to data D1 to D8.

StMPXLINMasterSimItem​

Members of StMPXLINMasterSimItem (LIN master simulation information) are as follows.

Variable NameTypeDescriptionNotes
Enableduint8_tEnable/DisableFor values, see LIN Simulation Setting Enable/Disable.
OneTimeuint8_tOne-time transmissionFor values, see LIN Simulation Setting Enable/Disable.
FrameTypeuint8_tLIN frame typeFor values, see LIN Frame Type.
Reserveduint8_tReserved area 
Delayuint32_tTransmission delay (milliseconds) 
FrameStMPXLINFrameLIN frame information 

StMPXLINMasterSim​

Members of StMPXLINMasterSim (LIN master simulation information list) are as follows.

Variable NameTypeDescription
ItemStMPXLINMasterSimItem [64]LIN master simulation information

StMPXLINSlaveSimItem​

Members of StMPXLINSlaveSimItem (LIN slave simulation information) are as follows.

Variable NameTypeDescriptionNotes
Enableduint8_tEnable/DisableFor values, see LIN Simulation Setting Enable/Disable.
OneTimeuint8_tOne-time transmissionFor values, see LIN Simulation Setting Enable/Disable.
Reserveduint8_t [2]Reserved area 
FrameStMPXLINFrameLIN frame information 

StMPXLINSlaveSim​

Members of StMPXLINSlaveSim (LIN slave simulation information list) are as follows.

Variable NameTypeDescriptionNotes
ItemStMPXLINSlaveSimItem [64]LIN slave simulation informationElement index (0 to 63) corresponds to LIN ID (0x00 to 0x3F).