Documentation enhancements to improve documentation cross-references.
[pub/USBasp.git] / LUFA / Drivers / USB / Class / HIDParser.h
index f02f1fd..49e57c2 100644 (file)
 \r
        /* Public Interface - May be used in end-application: */\r
                /* Enums: */\r
-                       /** Enum for indicating what type of report item an entry in a HID_ReportInfo_t ReportItem array is */\r
+                       /** Enum for indicating what type of report item an entry in a \ref HID_ReportInfo_t ReportItem array is */\r
                        enum HID_ReportItemTypes_t\r
                        {\r
                                REPORT_ITEM_TYPE_In                   = 0, /**< Indicates that the item is an IN report type. */\r
                                REPORT_ITEM_TYPE_Feature              = 2, /**< Indicates that the item is a FEATURE report type. */\r
                        };\r
                        \r
-                       /** Enum for the possible error codes in the return value of the ProcessHIDReport() function */\r
+                       /** Enum for the possible error codes in the return value of the \ref USB_ProcessHIDReport() function */\r
                        enum HID_Parse_ErrorCodes_t\r
                        {\r
                                HID_PARSE_Successful                  = 0, /**< Successful parse of the HID report descriptor, no error. */\r
-                               HID_PARSE_HIDStackOverflow            = 1, /**< More than HID_STATETABLE_STACK_DEPTH nested PUSHes in the report. */ \r
+                               HID_PARSE_HIDStackOverflow            = 1, /**< More than \ref HID_STATETABLE_STACK_DEPTH nested PUSHes in the report. */ \r
                                HID_PARSE_HIDStackUnderflow           = 2, /**< A POP was found when the state table stack was empty. */\r
-                               HID_PARSE_InsufficientReportItems     = 3, /**< More than HID_MAX_REPORTITEMS report items in the report. */\r
+                               HID_PARSE_InsufficientReportItems     = 3, /**< More than \ref HID_MAX_REPORTITEMS report items in the report. */\r
                                HID_PARSE_UnexpectedEndCollection     = 4, /**< END COLLECTION found without matching COLLECTION item. */\r
-                               HID_PARSE_InsufficientCollectionPaths = 5, /**< More than HID_MAX_COLLECTIONS collections in the report. */\r
-                               HID_PARSE_UsageStackOverflow          = 6, /**< More than HID_USAGE_STACK_DEPTH usages listed in a row. */\r
+                               HID_PARSE_InsufficientCollectionPaths = 5, /**< More than \ref HID_MAX_COLLECTIONS collections in the report. */\r
+                               HID_PARSE_UsageStackOverflow          = 6, /**< More than \ref HID_USAGE_STACK_DEPTH usages listed in a row. */\r
                        };\r
                \r
                /* Type Defines: */             \r
                         */\r
                        typedef struct CollectionPath\r
                        {\r
-                               uint8_t                      Type;   /**< Collection type (for example "Generic Desktop"). */\r
+                               uint8_t                      Type;   /**< Collection type (e.g. "Generic Desktop"). */\r
                                HID_Usage_t                  Usage;  /**< Collection usage. */\r
                                struct CollectionPath*       Parent; /**< Reference to parent collection, or NULL if root collection. */\r
                        } HID_CollectionPath_t;\r
                        \r
                /* Function Prototypes: */\r
                        /** Function to process a given HID report returned from an attached device, and store it into a given\r
-                        *  HID_ReportInfo_t structure.\r
+                        *  \ref HID_ReportInfo_t structure.\r
                         *\r
                         *  \param ReportData  Buffer containing the device's HID report table\r
                         *  \param ReportSize  Size in bytes of the HID report table\r
-                        *  \param ParserData  Pointer to a HID_ReportInfo_t instance for the parser output\r
+                        *  \param ParserData  Pointer to a \ref HID_ReportInfo_t instance for the parser output\r
                         *\r
-                        *  \return A value in the HID_Parse_ErrorCodes_t enum\r
+                        *  \return A value in the \ref HID_Parse_ErrorCodes_t enum\r
                         */\r
                        uint8_t USB_ProcessHIDReport(const uint8_t* ReportData, uint16_t ReportSize, HID_ReportInfo_t* const ParserData)\r
                                                     ATTR_NON_NULL_PTR_ARG(1, 3);\r
 \r
                        /** Extracts the given report item's value out of the given HID report and places it into the Value\r
-                        *  member of the report item's HID_ReportItem_t structure.\r
+                        *  member of the report item's \ref HID_ReportItem_t structure.\r
                         *\r
                         *  \param ReportData  Buffer containing an IN or FEATURE report from an attached device\r
-                        *  \param ReportItem  Pointer to the report item of interest in a HID_ReportInfo_t ReportItem array\r
+                        *  \param ReportItem  Pointer to the report item of interest in a \ref HID_ReportInfo_t ReportItem array\r
                         *\r
                         *  \returns Boolean true if the item to retrieve was located in the given report, false otherwise\r
                         */\r
                                                      ATTR_NON_NULL_PTR_ARG(1, 2);\r
 \r
                        /** Retrieves the given report item's value out of the Value member of the report item's\r
-                        *  HID_ReportItem_t structure and places it into the correct position in the HID report\r
+                        *  \ref HID_ReportItem_t structure and places it into the correct position in the HID report\r
                         *  buffer. The report buffer is assumed to have the appropriate bits cleared before calling\r
                         *  this function (i.e., the buffer should be explicitly cleared before report values are added).\r
                         *\r
                         *  If the device has multiple HID reports, the report ID is set to the report ID of the given item.\r
                         *\r
                         *  \param ReportData  Buffer holding the current OUT report data\r
-                        *  \param ReportItem  Pointer to the report item of interest in a HID_ReportInfo_t ReportItem array\r
+                        *  \param ReportItem  Pointer to the report item of interest in a \ref HID_ReportInfo_t ReportItem array\r
                         */\r
                        void USB_SetHIDReportItemInfo(uint8_t* ReportData, const HID_ReportItem_t* ReportItem)\r
                                                      ATTR_NON_NULL_PTR_ARG(1, 2);\r