Defines | |
#define | NO_STREAM_CALLBACK NULL |
Typedefs | |
typedef uint8_t(*const | StreamCallbackPtr_t )(void) |
Enumerations | |
enum | StreamCallback_Return_ErrorCodes_t { STREAMCALLBACK_Continue = 0, STREAMCALLBACK_Abort = 1 } |
Macros and enums for the stream callback routines. This module contains the code required to easily set up stream callback functions which can be used to force early abort of a stream read/write process. Each callback should take no arguments, and return a value from the StreamCallback_Return_ErrorCodes_t enum.
#define NO_STREAM_CALLBACK NULL |
Used with the Endpoint and Pipe stream functions as the callback function parameter, indicating that the stream call has no callback function to be called between USB packets.
typedef uint8_t(* const StreamCallbackPtr_t)(void) |
Type define for a Stream Callback function (function taking no arguments and retuning a uint8_t value). Stream callback functions should have an identical function signature if they are to be used as the callback parameter of the stream functions.