Endpoint and Pipe Stream Callbacks
[USB - LUFA/Drivers/USB/USB.h]

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
}

Detailed Description

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 Documentation

#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 Documentation

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.


Enumeration Type Documentation

Enum for the possible error return codes of a stream callback function

Enumerator:
STREAMCALLBACK_Continue 

Continue sending or receiving the stream.

STREAMCALLBACK_Abort 

Abort the stream send or receiving process.


Generated on Thu Sep 24 22:58:14 2009 for LUFA (Formerly MyUSB) Library by  doxygen 1.6.1