diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-05-15 12:27:32 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-05-15 12:27:32 +0000 |
commit | eeba38e343a299e12964aec15fd43108d3dc9130 (patch) | |
tree | 4ad58eb59a275db1102be49aba13a775617f1fa9 /LUFA/Drivers/USB/HighLevel | |
parent | 76d5e99bb8765030a7f99e7b5adf9bae7f92e0ba (diff) | |
download | lufa-eeba38e343a299e12964aec15fd43108d3dc9130.tar.gz lufa-eeba38e343a299e12964aec15fd43108d3dc9130.tar.bz2 lufa-eeba38e343a299e12964aec15fd43108d3dc9130.zip |
Create a new function pointer type in StreamCallbacks.h for endpoint/pipe stream callbacks, to make stream function prototypes clearer.
Diffstat (limited to 'LUFA/Drivers/USB/HighLevel')
-rw-r--r-- | LUFA/Drivers/USB/HighLevel/StreamCallbacks.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/HighLevel/StreamCallbacks.h b/LUFA/Drivers/USB/HighLevel/StreamCallbacks.h index 6a18920c3..e739d8438 100644 --- a/LUFA/Drivers/USB/HighLevel/StreamCallbacks.h +++ b/LUFA/Drivers/USB/HighLevel/StreamCallbacks.h @@ -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
/** @} */
|