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> description4.3.2.10 canChannelWaitTxEventThe function waits until the transmit event has occurred, or a certain waiting timehas elapsed. The complete syntax of the function is:HRESULT canChannelWaitTxEvent (HANDLE hChannelUINT32 dwMsTimeout );Parameters:hChannel[in] Handle of the opened message channel.dwMsTimeoutMaximum waiting time in milliseconds. The function returns to the callerwith the error code <strong>VCI</strong>_E_TIMEOUT if the transmit event has not occurredwithin the time specified here. With the value INFINITE (0xFFFFFFFF), thefunction waits until the transmit event has occured.Return value:If run successfully, the function returns the value <strong>VCI</strong>_OK. If the time periodspecified in the parameter dwMsTimeout has elapsed without the transmitevent having occured, the function returns the error code <strong>VCI</strong>_E_TIMEOUT. Inthe event of an error, the function returns an error code not equal to <strong>VCI</strong>_OKor <strong>VCI</strong>_E_TIMEOUT. Further information on the error code is provided by thefunction vciFormatError.Comments:The transmit event is triggered as soon as the transmit buffer contains thesame number of free entries as the set threshold or more. See the descriptionof the function canChannelInitialize.To check whether the transmit event has already occurred without blockingthe calling program, the value 0 can be specified in the parameter dwMsTimeoutwhen the function is called.If the handle specified in hChannel is closed from another thread, the functionends the current function control and returns with a return value not equal to<strong>VCI</strong>_OK.67Copyright 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!