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 structures• bByteIndex:[in/out] If the value <strong>CAN</strong>_CTXMSG_INC_8 is specified in the field bIncrMode,this field defines the index of the data byte in the data field abMsgData that isto be automatically incremented after every transmit process. If the value<strong>CAN</strong>_CTXMSG_INC_16 is specified for bIncrMode, this field defines the indexof the least significant byte (LSB) of the 16-bit value in the data field abMsgData.The most significant byte (MSB) of the 16-bit value is in the data fieldabMsgData[bByteIndex+1].• dwMsgId:[in/out] ID of the message (<strong>CAN</strong>-ID) in Intel format (right-aligned) without RTRbit.• uMsgInfo:[in/out] Bit field with information on the message type. A description of the bitfield is given in section 5.2.5.• abData:[in/out] Array for up to 8 data bytes. The number of valid data bytes is definedby the field uMsgInfo.Bits.dlc.5.3 LIN-specific data typesThe declarations of all LIN-specific data types and constants are found in the file.5.3.1 LINCAPABILITIESThe data type describes the properties of a LIN connection. The structure is as follows:typedef struct _LINCAPABILITIES{UINT16 dwFeatures;UINT32 dwClockFreq;UINT32 dwTscDivisor;} LINCAPABILITIES, *PLINCAPABILITIES;• dwFeatures:[out] Supported properties. The value is a combination of one or more of thefollowing constants:LIN_FEATURE_MASTER:The LIN controller supports the “master” mode.LIN_FEATURE_AUTORATE:The LIN controller supports automatic bitrate detection.LIN_FEATURE_ERRFRAME:The LIN controller supplies error messages.LIN_FEATURE_BUSLOAD:The LIN controller supports calculation of the bus load.101Copyright 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!