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.

Accessing the busBitrate (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 0x14If the <strong>CAN</strong> connection is connected to a running system whose bitrate is unknown,the current bitrate can be determined with the function canControlDetectBitrate.The bus timing values determined by the function can then be appliedinto the function canControlInitialize.The <strong>CAN</strong> controller is started or stopped by calling the function canControlStart.When the function is successfully called with the value TRUE in the parameterfStart, the controller is in “online” state. In this state the <strong>CAN</strong> controller is activelyconnected to the bus. Incoming <strong>CAN</strong> messages are forwarded to all active messagechannels, or transmit messages are output to the bus by the message channels.Calling the function canControlStart with the value FALSE in the parameter fStartswitches the <strong>CAN</strong> controller to “offline” mode. The message transfer is interruptedand the controller disabled.The function canControlReset switches the <strong>CAN</strong> controller to “not initialized” status.In addition, the function resets the controller hardware and the set messagefilters. Please note that resetting the controller hardware leads to false messagetelegrams on the bus if a transmit process is aborted in the middle of transmissionwhen a function is called.17Copyright 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!