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
DLunsigned charData length (DL)Configurable range: 1 to 8
CheckSumTypeunsigned charChecksum typeFor values, see LIN Checksum Type.

StMPXLINParam

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

Variable NameTypeDescriptionNotes
Modeunsigned charLIN operation modeFor values, see LIN Operation Mode.
Revisionunsigned charLIN revisionFor values, see LIN Revision.
Baudrateunsigned shortBaud rate (bps)Configurable range: 500 to 20000
SyncBreakunsigned charSyncBreak width (bit)Configurable range: 10 to 26
Delimiterunsigned charSyncBreak delimiter width (bit)Configurable range: 1 to 20
HeaderSpaceunsigned charHeaderSpace width (bit)Configurable range: 0 to 20
ResponseSpaceunsigned charResponseSpace width (bit)Configurable range: 0 to 20
ByteSpaceunsigned charByteSpace width (bit)Configurable range: 1 to 20
Reserved1unsigned char [3]Reserved area 1 
WakeupWidthunsigned shortWake-up pulse width (microseconds) 
WakeupWaitunsigned shortWake-up wait time (milliseconds)Configurable range: 0 to 100
SleepTimeunsigned shortSleep time (milliseconds) 
Reserved2unsigned char [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
mSecunsigned longTimestamp (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.
uSecunsigned shortTimestamp (microseconds)
Protocolunsigned charProtocolFor value meanings, see Log Type.
Dirunsigned charDirectionFor value meanings, see Log Direction.
IDunsigned charLIN ID 
SBLenunsigned charSyncBreak width 
WakeupWidthunsigned shortWake-up pulse width 
Typeunsigned charLIN log typeFor value meanings, see LIN Log Type.
DLunsigned charData length (DL) 
Reserved1unsigned char [2]Reserved area 1 
ErrorCodeunsigned charError codeFor value meanings, see LIN Error Code.
Reserved2unsigned char [3]Reserved area 2 
Dataunsigned char [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
IDunsigned charLIN IDConfigurable range: 0 (0x00) to 63 (0x3F)
DLunsigned charData length (DL)Configurable range: 1 to 8
ErrorCodeunsigned charError codeFor values, see LIN Error Code.
Reservedunsigned charReserved area 
Dataunsigned char [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
Enabledunsigned charEnable/DisableFor values, see LIN Simulation Setting Enable/Disable.
OneTimeunsigned charOne-time transmissionFor values, see LIN Simulation Setting Enable/Disable.
FrameTypeunsigned charLIN frame typeFor values, see LIN Frame Type.
Reservedunsigned charReserved area 
Delayunsigned longTransmission 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
Enabledunsigned charEnable/DisableFor values, see LIN Simulation Setting Enable/Disable.
OneTimeunsigned charOne-time transmissionFor values, see LIN Simulation Setting Enable/Disable.
Reservedunsigned char [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).