/
USBD_HID_OS_TmrTask
USBD_HID_OS_TmrTask
Description
Process periodic input reports according to idle duration set by the host with the SET_IDLE request.
Files
usbd_hid_os.h
/usbd_hid_os.c
Prototype
static void USBD_HID_OS_TmrTask (void *p_arg);
Arguments
p_arg
Pointer to task initialization argument.
Callers
This is a task.
Implementation Guidelines
The task body is usually implemented as an infinite loop. The task should perform the following steps:
- Delay for 4 ms. This delay corresponds to the 4 ms unit used to express the idle duration transported by the
SET_IDLE
request. - Call
USBD_HID_Report_TmrTaskHandler()
function defined in the HID parser module. This function implements the periodic input reports processing.
Related content
HID Periodic Input Reports Task
HID Periodic Input Reports Task
More like this
USBD_HID_OS_InputDataPost
USBD_HID_OS_InputDataPost
More like this
USBD_HID_OS_InputDataPend
USBD_HID_OS_InputDataPend
More like this
USBD_HID_OS_OutputDataPost
USBD_HID_OS_OutputDataPost
More like this
USBD_HID_OS_OutputDataPend
USBD_HID_OS_OutputDataPend
More like this
USBD_HID_OS_OutputDataPendAbort
USBD_HID_OS_OutputDataPendAbort
More like this