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.

<strong>Interface</strong> descriptionReturn value:If run successfully, the function returns the value <strong>VCI</strong>_OK, otherwise an errorcode not equal to <strong>VCI</strong>_OK. Further information on the error code is providedby the function vciFormatError.Comments:Further information on the data provided by the function is given in the descriptionof the data structure <strong>CAN</strong>LINESTATUS in section 5.2.2.4.3.1.5 canControlDetectBitrateThis function determines the current bitrate of the bus to which the <strong>CAN</strong> connectionis connected. The complete syntax of the function is:HRESULT canControlDetectBitrate (HANDLE hControl,UINT16 wTimeoutMs,UINT32 dwCount,PUINT8 pabBtr0,PUINT8 pabBtr1,PINT32 plIndex );hControl[in] Handle of the opened <strong>CAN</strong> controller.Parameters:wTimeoutMs[in] Maximum waiting time in milliseconds between two messages on thebus.dwCount[in] Number of elements in the bit timing tables pabBtr0 or pabBtr1.pabBtr0[in] Pointer to a table with the values to be tested for the bus timing register0. The value of an entry corresponds to the BT0 register of the Philips SJA1000 <strong>CAN</strong> controller with a cycle frequency of 16 MHz. The table mustcontain at least dwCount elements.pabBtr1[in] Pointer to a table with the values to be tested for the bus timing register1. The value of an entry corresponds to the BT1 register of the Philips SJA1000 <strong>CAN</strong> controller with a cycle frequency of 16 MHz. The table mustcontain at least dwCount elements.plIndex[out] Pointer to a variable of type INT32. If run successfully, the functionreturns the table index of the found bit timing values in this variable.52Copyright 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!