Returns a pointer to the next receive buffer which has a fully-received frame in it for the designated queue. The pointer refers to the buffer which is used by the DMA engine, so if the data is required after the next cycle takes place it will need to be copied out of the buffer, or there should be sufficient receive buffers for multiple cycles.
If no buffer is available, the call returns a failing status.
HPESTATUS hpeGetReceiveQueueBuffer( HPEHANDLE devhandle,
DWORD queue_index, HPEBUFFER **buffer_ptr );
devhandle
queue_index
buffer_ptr
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_INVALID_ADDR |
The buffer_ptr parameter was not a valid pointer. |
E_STATE |
No completed receive buffers were available. |
E_LIMIT |
The queue_index parameter was out of bounds for the current hardware interface. |
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 6.0 (HPE3) | intime/rt/include/hpeif2.h | hpeif2.h | hpeif2.lib |