aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/ConfigDescriptor.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-04-19 11:43:21 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-04-19 11:43:21 +0000
commit663f449c10b9a77a429aaa81066ce2b43ca6dc39 (patch)
tree3a6f06560fa24589836aaf9d2aa8747383913aae /LUFA/Drivers/USB/Class/ConfigDescriptor.h
parent32e735b2b2eefb74e0415a5826692f7ba8c0a984 (diff)
downloadlufa-663f449c10b9a77a429aaa81066ce2b43ca6dc39.tar.gz
lufa-663f449c10b9a77a429aaa81066ce2b43ca6dc39.tar.bz2
lufa-663f449c10b9a77a429aaa81066ce2b43ca6dc39.zip
Fixed incorrect HID interface class and subclass values in the Mouse and KeyboardMouse demos (thanks to Brian Dickman).
Capitolised the "Descriptor_Search" and "Descriptor_Search_Comp" prefixes of the values in the DSearch_Return_ErrorCodes_t and DSearch_Comp_Return_ErrorCodes_t enums. Minor documentation improvements.
Diffstat (limited to 'LUFA/Drivers/USB/Class/ConfigDescriptor.h')
-rw-r--r--LUFA/Drivers/USB/Class/ConfigDescriptor.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/LUFA/Drivers/USB/Class/ConfigDescriptor.h b/LUFA/Drivers/USB/Class/ConfigDescriptor.h
index 7a1d53118..362a43e75 100644
--- a/LUFA/Drivers/USB/Class/ConfigDescriptor.h
+++ b/LUFA/Drivers/USB/Class/ConfigDescriptor.h
@@ -122,7 +122,7 @@
*/
#define DESCRIPTOR_COMPARATOR(name) uint8_t DCOMP_##name (void* const CurrentDescriptor)
- /* Psuedo-Functions: */
+ /* Pseudo-Function Macros: */
#if defined(__DOXYGEN__)
/** Searches for the next descriptor in the given configuration descriptor using a premade comparator
* function. The routine updates the position and remaining configuration descriptor bytes values
@@ -146,9 +146,9 @@
* DESCRIPTOR_COMPARATOR(EndpointSearcher)
* {
* if (DESCRIPTOR_TYPE(CurrentDescriptor) == DTYPE_Endpoint)
- * return Descriptor_Search_Found;
+ * return DESCRIPTOR_SEARCH_Found;
* else
- * return Descriptor_Search_NotFound;
+ * return DESCRIPTOR_SEARCH_NotFound;
* }
*
* //...
@@ -169,18 +169,18 @@
/** Enum for return values of a descriptor comparator made with DESCRIPTOR_COMPARATOR. */
enum DSearch_Return_ErrorCodes_t
{
- Descriptor_Search_Found = 0, /**< Current descriptor matches comparator criteria. */
- Descriptor_Search_Fail = 1, /**< No further descriptor could possibly match criteria, fail the search. */
- Descriptor_Search_NotFound = 2, /**< Current descriptor does not match comparator criteria. */
+ DESCRIPTOR_SEARCH_Found = 0, /**< Current descriptor matches comparator criteria. */
+ DESCRIPTOR_SEARCH_Fail = 1, /**< No further descriptor could possibly match criteria, fail the search. */
+ DESCRIPTOR_SEARCH_NotFound = 2, /**< Current descriptor does not match comparator criteria. */
};
/** Enum for return values of USB_GetNextDescriptorComp(). */
enum DSearch_Comp_Return_ErrorCodes_t
{
- Descriptor_Search_Comp_Found = 0, /**< Configuration descriptor now points to descriptor which matches
+ DESCRIPTOR_SEARCH_COMP_Found = 0, /**< Configuration descriptor now points to descriptor which matches
* search criteria of the given comparator function. */
- Descriptor_Search_Comp_Fail = 1, /**< Comparator function returned Descriptor_Search_Fail. */
- Descriptor_Search_Comp_EndOfDescriptor = 2, /**< End of configuration descriptor reached before match found. */
+ DESCRIPTOR_SEARCH_COMP_Fail = 1, /**< Comparator function returned Descriptor_Search_Fail. */
+ DESCRIPTOR_SEARCH_COMP_EndOfDescriptor = 2, /**< End of configuration descriptor reached before match found. */
};
/* Function Prototypes: */