|
Stream callback structure. More...
#include <libusbk.h>
Public Member Functions | |
INT KUSB_API | KSTM_ERROR_CB (_in PKSTM_INFO StreamInfo, _in PKSTM_XFER_CONTEXT XferContext, _in INT XferContextIndex, _in INT ErrorCode) |
Function definition for an optional user-defined callback; executed when a transfer error occurs. | |
INT KUSB_API | KSTM_SUBMIT_CB (_in PKSTM_INFO StreamInfo, _in PKSTM_XFER_CONTEXT XferContext, _in INT XferContextIndex, _in LPOVERLAPPED Overlapped) |
Function definition for an optional user-defined callback; executed to submit a transfer. | |
INT KUSB_API | KSTM_STARTED_CB (_in PKSTM_INFO StreamInfo, _in PKSTM_XFER_CONTEXT XferContext, _in INT XferContextIndex) |
Function definition for an optional user-defined callback; executed for each transfer context when the stream is started with StmK_Start. | |
INT KUSB_API | KSTM_STOPPED_CB (_in PKSTM_INFO StreamInfo, _in PKSTM_XFER_CONTEXT XferContext, _in INT XferContextIndex) |
Function definition for an optional user-defined callback; executed for each transfer context when the stream is stopped with StmK_Stop. | |
INT KUSB_API | KSTM_COMPLETE_CB (_in PKSTM_INFO StreamInfo, _in PKSTM_XFER_CONTEXT XferContext, _in INT XferContextIndex, _in INT ErrorCode) |
Function definition for an optional user-defined callback; executed when a valid transfer completes. | |
KSTM_COMPLETE_RESULT KUSB_API | KSTM_BEFORE_COMPLETE_CB (_in PKSTM_INFO StreamInfo, _in PKSTM_XFER_CONTEXT XferContext, _in INT XferContextIndex, _ref PINT ErrorCode) |
Function definition for an optional user-defined callback; executed immediately after a transfer completes. More... | |
Data Fields | |
KSTM_ERROR_CB * | Error |
Executed when a transfer error occurs. | |
KSTM_SUBMIT_CB * | Submit |
Executed to submit a transfer. | |
KSTM_COMPLETE_CB * | Complete |
Executed when a valid transfer completes. | |
KSTM_STARTED_CB * | Started |
Executed for every transfer context when the stream is started with StmK_Start. | |
KSTM_STOPPED_CB * | Stopped |
Executed for every transfer context when the stream is stopped with StmK_Stop. | |
KSTM_BEFORE_COMPLETE_CB * | BeforeComplete |
Executed immediately after a transfer completes. | |
UCHAR | z_F_i_x_e_d [64-sizeof(UINT_PTR)*6] |
fixed structure padding. | |
Stream callback structure.
[Fixed structure size of 64 bytes]
These optional callback functions are executed from the streams internal thread at various stages of operation.