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:

  1. Delay for 4 ms. This delay corresponds to the 4 ms unit used to express the idle duration transported by the SET_IDLE request.
  2. Call USBD_HID_Report_TmrTaskHandler() function defined in the HID parser module. This function implements the periodic input reports processing.