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 structures5.2.6 <strong>CAN</strong>MSGThe data type describes the structure of a <strong>CAN</strong> message telegram.typedef struct{UINT32 dwTime;UINT32 dwMsgId;<strong>CAN</strong>MSGINFO uMsgInfo;UINT8 abData[8];} <strong>CAN</strong>MSG, *P<strong>CAN</strong>MSG;• dwTime:[in/out] With receive messages, this field contains the relative reception time ofthe message in ticks. The resolution of a tick can be calculated from the fieldsdwClockFreq and dwTscDivisor of the structure <strong>CAN</strong>CAPABILITIES in accordancewith the following formula:Resolution [s] = dwTscDivisor / dwClockFreqAn overrun of the 32-Bit dwTime value is received with a Timer Overrun messages( <strong>CAN</strong>_MSGTYPE_TIMEOVR $5.2.5)With transmit messages, the field defines with how many ticks delay the messageis to be transmitted to the bus. The delay time between the last messagetransmitted and the new message can be calculated with the fields dwClock-Freq and dwDtxDivisor of the structure <strong>CAN</strong>CAPABILITIES in accordance withthe following formula.delay time [s] = (dwDtxDivisor / dwClockFreq) * dwTimeThe maximum possible delay time is defined by the field dwDtxMaxTicks of thestructure <strong>CAN</strong>CAPABILITIES.• dwMsgId:[in/out] <strong>CAN</strong> ID of the message in Intel format (right-aligned) without RTR bit.• 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.99Copyright 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!