VCI - Virtual CAN Interface - Ixxat
VCI - Virtual CAN Interface - Ixxat
VCI - Virtual CAN Interface - Ixxat
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 structures<strong>CAN</strong>_MSGTYPE_DATA:Normal message. All regular receive messages are of this type. The field <strong>CAN</strong>MSG.dwMsgIdcontains the ID of the message, the field <strong>CAN</strong>MSG.dwTime the time of reception. The fields<strong>CAN</strong>MSG.abData contain according to length (see Bits.dlc) the data bytes of the message.With transmit messages the IDs are to be entered in the field <strong>CAN</strong>MSG.dwMsgId and thedata bytes according to length in the fields <strong>CAN</strong>MSG.abData. The field <strong>CAN</strong>MSG.dwTime isnormally set to 0, unless the message is to be transmitted with a delay. In this case the delaytime is to be specified in ticks. See also the description of the structure <strong>CAN</strong>MSG, or section3.1.3.3.<strong>CAN</strong>_MSGTYPE_INFO:Information message. This message type is entered in the receive buffers of all activatedmessage channels with certain events or with changes to the status of the controller. Thefield <strong>CAN</strong>MSG.dwMsgId of the message always has the value 0xFFFFFFFF. The field ab<strong>CAN</strong>MSG.Data[0] contains one of the following values:Constant Meaning<strong>CAN</strong>_INFO_START The <strong>CAN</strong> controller was started. The field<strong>CAN</strong>MSG.dwTime contains the relative start time (normally0).<strong>CAN</strong>_INFO_STOP The <strong>CAN</strong> controller was stopped. The field<strong>CAN</strong>MSG.dwTime contains the value 0.<strong>CAN</strong>_INFO_RESET The <strong>CAN</strong> controller was reset. The field <strong>CAN</strong>MSG.dwTimecontains the value 0.<strong>CAN</strong>_MSGTYPE_ERROR:Error message. This message type is entered in the receive buffers of all activated messagechannels when bus errors occur if the flag <strong>CAN</strong>_OPMODE_ERRFRAME was specified in theparameter <strong>CAN</strong>MSG.bMode when the function canControlInitialize was called. The field<strong>CAN</strong>MSG.dwMsgId of the message always has the value 0xFFFFFFFF. The time of the eventis marked in the field <strong>CAN</strong>MSG.dwTime of the message. The field abData[0] contains one ofthe following values:ConstantMeaning<strong>CAN</strong>_ERROR_STUFF Bit stuff error<strong>CAN</strong>_ERROR_FORM Format error<strong>CAN</strong>_ERROR_ACK Acknowledge error<strong>CAN</strong>_ERROR_BIT Bit error<strong>CAN</strong>_ERROR_CRC CRC error<strong>CAN</strong>_ERROR_OTHER Other unspecified errorThe field <strong>CAN</strong>MSG.abData[1] of the message contains the least significant byte of the current<strong>CAN</strong> status (see also <strong>CAN</strong>LINESTATUS.dwStatus). The contents of the other data fieldsare undefined.97Copyright IXXAT Automation GmbH C-API Programming Manual, Version 1.5