Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lufa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Strand
lufa
Commits
1c12341c
Commit
1c12341c
authored
15 years ago
by
Dean Camera
Browse files
Options
Downloads
Patches
Plain Diff
Completed documentation of the HID device class driver.
parent
bde64666
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LUFA/Drivers/USB/Class/Device/HID.h
+21
-1
21 additions, 1 deletion
LUFA/Drivers/USB/Class/Device/HID.h
with
21 additions
and
1 deletion
LUFA/Drivers/USB/Class/Device/HID.h
+
21
−
1
View file @
1c12341c
...
...
@@ -123,8 +123,28 @@
}
USB_ClassInfo_HID_t
;
/* Function Prototypes: */
/** Configures the endpoints of a given HID interface, ready for use. This should be linked to the library
* \ref EVENT_USB_ConfigurationChanged() event so that the endpoints are configured when the configuration
* containing the given HID interface is selected.
*
* \param HIDInterfaceInfo Pointer to a structure containing a HID Class configuration and state.
*
* \return Boolean true if the endpoints were sucessfully configured, false otherwise
*/
bool
USB_HID_ConfigureEndpoints
(
USB_ClassInfo_HID_t
*
HIDInterfaceInfo
);
/** Processes incomming control requests from the host, that are directed to the given HID class interface. This should be
* linked to the library \ref EVENT_USB_UnhandledControlPacket() event.
*
* \param HIDInterfaceInfo Pointer to a structure containing a HID Class configuration and state.
*/
void
USB_HID_ProcessControlPacket
(
USB_ClassInfo_HID_t
*
HIDInterfaceInfo
);
/** General management task for a given HID class interface, required for the correct operation of the interface. This should
* be called frequently in the main program loop, before the master USB management task \ref USB_USBTask().
*
* \param HIDInterfaceInfo Pointer to a structure containing a HID Class configuration and state.
*/
void
USB_HID_USBTask
(
USB_ClassInfo_HID_t
*
HIDInterfaceInfo
);
/** HID class driver callback for the user creation of a HID input report. This callback may fire in response to either
...
...
@@ -150,7 +170,7 @@
* interface, this parameter should be ignored.
* \param ReportData Pointer to a buffer where the received HID report is stored.
*/
void
CALLBACK_USB_HID_ProcessReceivedHIDReport
(
USB_ClassInfo_HID_t
*
HIDInterfaceInfo
,
uint8_t
ReportID
,
void
*
ReportData
,
uint16_t
ReportSize
);
void
CALLBACK_USB_HID_ProcessReceivedHIDReport
(
USB_ClassInfo_HID_t
*
HIDInterfaceInfo
,
uint8_t
ReportID
,
void
*
ReportData
,
uint16_t
ReportSize
);
/* Disable C linkage for C++ Compilers: */
#if defined(__cplusplus)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment