Create a new function pointer type in StreamCallbacks.h for endpoint/pipe stream...
[pub/USBasp.git] / LUFA / Drivers / USB / Class / ConfigDescriptor.h
index 6f5bbc4..74d6d27 100644 (file)
                                *BytesRem      -= CurrDescriptorSize;\r
                        }\r
                        \r
-       /* Private Interface - For use in library only: */\r
-       #if !defined(__DOXYGEN__)\r
                /* Type Defines: */\r
-                       typedef uint8_t (* const ComparatorPtr_t)(void* const);\r
+                       /** Type define for a Configuration Descriptor comparator function (function taking a pointer to an array\r
+                        *  of type void, returning a uint8_t value).\r
+                        *\r
+                        *  \see \ref USB_GetNextDescriptorComp function for more details\r
+                        */\r
+                       typedef uint8_t (* const ConfigComparatorPtr_t)(void* const);\r
 \r
+       /* Private Interface - For use in library only: */\r
+       #if !defined(__DOXYGEN__)\r
                /* Function Prototypes: */\r
-                       uint8_t USB_GetNextDescriptorComp_Prv(uint16_t* BytesRem, uint8_t** CurrConfigLoc, ComparatorPtr_t ComparatorRoutine);\r
+                       uint8_t USB_GetNextDescriptorComp_Prv(uint16_t* BytesRem, uint8_t** CurrConfigLoc, ConfigComparatorPtr_t ComparatorRoutine);\r
        #endif\r
                        \r
        /* Disable C linkage for C++ Compilers: */\r