aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/Device/HID.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-07-30 14:59:57 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-07-30 14:59:57 +0000
commit7df6b9563c7aed504b34f42bc46d01e051051bdd (patch)
tree793ba54650d14eaeb2c262e8d48e4c06f5fd79ac /LUFA/Drivers/USB/Class/Device/HID.h
parent7227e133a9cf8d4de1214671211a0d93edb2b4bc (diff)
downloadlufa-7df6b9563c7aed504b34f42bc46d01e051051bdd.tar.gz
lufa-7df6b9563c7aed504b34f42bc46d01e051051bdd.tar.bz2
lufa-7df6b9563c7aed504b34f42bc46d01e051051bdd.zip
Add new HID_Device_MillisecondElapsed() function to the HID device Class driver, to move the burden of managing the Idle period of each instance to the library and not the user application.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Device/HID.h')
-rw-r--r--LUFA/Drivers/USB/Class/Device/HID.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/Class/Device/HID.h b/LUFA/Drivers/USB/Class/Device/HID.h
index ae68134fe..06456cf8a 100644
--- a/LUFA/Drivers/USB/Class/Device/HID.h
+++ b/LUFA/Drivers/USB/Class/Device/HID.h
@@ -121,6 +121,13 @@
*/
void HID_Device_USBTask(USB_ClassInfo_HID_Device_t* HIDInterfaceInfo);
+ /** Indicates that a millisecond of idle time has elapsed on the given HID interface, and the interface's idle count should be
+ * decremented. This should be called once per millisecond so that hardware key-repeats function correctly.
+ *
+ * \param[in,out] HIDInterfaceInfo Pointer to a structure containing a HID Class configuration and state.
+ */
+ void HID_Device_MillisecondElapsed(USB_ClassInfo_HID_Device_t* HIDInterfaceInfo);
+
/** HID class driver callback for the user creation of a HID input report. This callback may fire in response to either
* HID class control requests from the host, or by the normal HID endpoint polling procedure. Inside this callback the
* user is responsible for the creation of the next HID input report to be sent to the host.