13.07.2015 Views

VCI - Virtual CAN Interface - Ixxat

VCI - Virtual CAN Interface - Ixxat

VCI - Virtual CAN Interface - Ixxat

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Types and structuresLIN_MSGTYPE_ERROR:Error message. This message type is entered in the receive buffer of all activated messagemonitors when bus errors occur, as far as the flag LIN_OPMODE_ERRORS was defined at initializationof the controller. The field LINMSG.bPid of the message always has the value0xFF. The time of the event is recorded in the field LINMSG.dwTime of the message. Thefield LINMSG.abData[0] contains one of the following values:ConstantMeaningLIN_ERROR_BIT Bit errorLIN_ERROR_CHKSUM Checksum errorLIN_ERROR_PARITY Parity error of the identifierLIN_ERROR_SLNORE “Slave” does not respondLIN_ERROR_SYNC Invalid synchronization fieldLIN_ERROR_NOBUS No bus activityLIN_ERROR_OTHER Other, unspecified errorThe field LINMSG.abData[1] of the message contains the low value byte of the current status(see also LINLINESTATUS.dwStatus). The content of the other data fields is undefined.LIN_MSGTYPE_STATUS:Status message. This message type is entered in the receive buffer of all activated messagechannels at changes in the controller status. The field LINMSG.bPid of the message alwayshas the value 0xFF. The time of the event is recorded in the field LINMSG.dwTime of themessage. The field LINMSG.abData[0] contains the low value byte of the current status (seealso LINLINESTATUS.dwStatus). The content of the other data fields is undefined.LIN_MSGTYPE_WAKEUP:Only for transmit messages. Messages of this type generate a wake-up signal on the bus.The fields LINMSG.dwTime, LINMSG.bPid and LINMSG.bDlen have no significance.LIN_MSGTYPE_TMOVR:Counter overrun. Messages of this type are generated in the event of an overrun of the 32bit time stamp of LIN messages. The field LINMSG.dwTime of the message contains thetime of the event (normally 0) and in the field LINMSG.bDlen the number of timer overruns.The content of the data fields LINMSG.abData is undefined, the field LINMSG.bPid alwayshas the value 0xFF.LIN_MSGTYPE_SLEEP:Goto Sleep message. The fields LINMSG.dwTime, LINMSG.bPid and LINMSG.bDlen have nosignificance.• Bits.dlen:[in/out] Number of valid data bytes in the field LINMSG.abData of the message.• Bits.ecs:[in/out] Enhanced checksum. The bit is set to 1 if it is a message with extendedchecksum in accordance with LIN 2.0.• Bits.sor:[out] Sender of response. The bit is set with messages which the LIN controlleritself has transmitted, i.e. with messages for which the controller has an entryin the response table.105Copyright IXXAT Automation GmbH C-API Programming Manual, Version 1.5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!