libusbK 
3.0
Library Documentation
© 2011-2021 Travis Lee Robinson. All rights reserved.
KSTM_CALLBACK Struct Reference

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_CBError
 Executed when a transfer error occurs.
 
KSTM_SUBMIT_CBSubmit
 Executed to submit a transfer.
 
KSTM_COMPLETE_CBComplete
 Executed when a valid transfer completes.
 
KSTM_STARTED_CBStarted
 Executed for every transfer context when the stream is started with StmK_Start.
 
KSTM_STOPPED_CBStopped
 Executed for every transfer context when the stream is stopped with StmK_Stop.
 
KSTM_BEFORE_COMPLETE_CBBeforeComplete
 Executed immediately after a transfer completes.
 
UCHAR z_F_i_x_e_d [64-sizeof(UINT_PTR)*6]
 fixed structure padding.
 

Detailed Description

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.


The documentation for this struct was generated from the following file: