Create a new function pointer type in StreamCallbacks.h for endpoint/pipe stream callbacks, to make stream function prototypes clearer.

This commit is contained in:
Dean Camera 2009-05-15 12:27:32 +00:00
parent 76d5e99bb8
commit eeba38e343
11 changed files with 64 additions and 37 deletions

View file

@ -85,7 +85,15 @@
STREAMCALLBACK_Continue = 0, /**< Continue sending or receiving the stream. */
STREAMCALLBACK_Abort = 1, /**< Abort the stream send or receiving process. */
};
/* Type Defines: */
/** Type define for a Stream Callback function (function taking no arguments and retuning a
* uint8_t value).
*
* \see \ref STREAM_CALLBACK macro for more details
*/
typedef uint8_t (* const StreamCallbackPtr_t)(void);
#endif
/** @} */