INtime SDK Help
hpeWaitForReceiveQueueComplete
INtime SDK v7.1 > About INtime > Networking and I/O > High-Performance Ethernet > hpeWaitForReceiveQueueComplete

The caller sleeps until the next receive interrupt occurs for the designated queue. The sleep occurs on a counting semaphore so that the count accumulates for every receive interrupt. When configured, receive interrupts occur for every packet received. A microsecond-resolution timeout value may be specified, or INFINITE to indicate that the caller should block until the operation is complete.

Note: This call must be made if hpeOpen was called with the INPUT_INTERRUPT flag set.
HPESTATUS hpeWaitForReceiveQueueComplete(
    HPEHANDLE devhandle, 
DWORD queue_index, DWORD timeout_us );

Parameters

devhandle
A handle value for the device.
queue_index
The index of the receive queue.
timeout_us
A timeout value in microseconds, or INFINITE to indicate that the operation should not time out before completion.

Return Values

A status value indicating the success or failure of the operation:

E_OK The operation completed successfully.
E_EXIST The handle given is not a handle for an open HPE interface.
E_TIME The call timed out before the operation was complete.
E_STATE The driver is not operating in receive-interrupt mode.

Requirements

Versions Defined in Include Link to
INtime 6.0 (HPE3) intime/rt/include/hpeif2.h hpeif2.h hpeif2.lib
See Also