13.07.2015 Views

VCI - Virtual CAN Interface - Ixxat

VCI - Virtual CAN Interface - Ixxat

VCI - Virtual CAN Interface - Ixxat

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Interface</strong> descriptionFurther information on the bus timing values in the parameters bBtr0 andbBtr1 is given in the datasheet of the Philips SJA 1000 <strong>CAN</strong> controller.The following table shows the bus timing values for all bitrates specified bythe CiA or <strong>CAN</strong>open.Bitrate (kbit) Pre-defined constants for BTR0, BTR1 BTR0 BTR110 <strong>CAN</strong>_BT0_10KB, <strong>CAN</strong>_BT1_10KB 0x31 0x1C20 <strong>CAN</strong>_BT0_20KB, <strong>CAN</strong>_BT1_20KB 0x18 0x1C50 <strong>CAN</strong>_BT0_50KB, <strong>CAN</strong>_BT1_50KB 0x09 0x1C100 <strong>CAN</strong>_BT0_100KB, <strong>CAN</strong>_BT1_100KB 0x04 0x1C125 <strong>CAN</strong>_BT0_125KB, <strong>CAN</strong>_BT1_125KB 0x03 0x1C250 <strong>CAN</strong>_BT0_250KB, <strong>CAN</strong>_BT1_250KB 0x01 0x1C500 <strong>CAN</strong>_BT0_500KB, <strong>CAN</strong>_BT1_500KB 0x00 0x1C800 <strong>CAN</strong>_BT0_800KB, <strong>CAN</strong>_BT1_800KB 0x00 0x161000 <strong>CAN</strong>_BT0_1000KB, <strong>CAN</strong>_BT1_1000KB 0x00 0x144.3.1.7 canControlResetThe function resets the controller hardware and the set message filters of a <strong>CAN</strong>connection. The complete syntax of the function is:HRESULT canControlReset ( HANDLE hControl );Parameter:hControl[in] Handle of the opened <strong>CAN</strong> controller.Return 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.The function resets the controller hardware, removes the set acceptance filter,deletes the contents of the filter lists and switches the controller “not initialized”.At the same time, the message flow between the controller and themessage channels connected to it is interrupted.Comments:When the function is called, a currently active transmit process of the controlleris aborted. This may lead to transmission errors or to a faulty message telegramon the bus.Further information is given in section 3.1.2.55Copyright 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!