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> descriptionIf the value 0xFFFFFFFF is specified in the parameter dwCanNo, the functiondisplays a dialog window to select a <strong>CAN</strong> interface board and a <strong>CAN</strong> connectionon the screen. In this case the function does not expect the handle of the<strong>CAN</strong> interface board in the parameter hDevice, but the handle of a higher orderwindow, or the value ZERO if no higher order window is available.If the message channel is no longer required, the handle returned in phChannelshould be released again with the function canChannelClose.4.3.2.2 canChannelCloseThe function closes an opened message channel. The complete syntax of thefunction is:HRESULT canChannelClose( HANDLE hChannel )Parameter:hChannel[in] Handle of the message channel to be closed. The handle specified heremust come from a call of the function canChannelOpen .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 vciFormatError.Comments:After the function is called, the handle specified in hChannel is no longer validand must no longer be used.4.3.2.3 canChannelGetCapsThe function determines the features of a <strong>CAN</strong> connection. The complete syntaxof the function is:HRESULT canChannelGetCaps (HANDLEhChannel,P<strong>CAN</strong>CAPABILITIES pCaps );Parameters:hChannel[in] Handle of the opened message channel.61Copyright 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!