The function usbd_hid_get_report_trigger asynchronously prepares data that will be returned to the USB Host upon request. This function enables USB Device to report only when an event has occurred. For example usually USB Host sets idle time to infinity upon HID Device enumeration what means that Host expects data from device only when something has changed so function usbd_hid_get_report_trigger is used to prepare data when something has changed. If idle time is not set to infinity then usbd_hid_get_report function is called on each idle time period expiry. The function should be used by application code on event that needs to update report data and it only is used for report type of HID_REPORT_INPUT. Arguments: - rid: report ID (0 - if only one report exists in system)
- buf: pointer to the buffer with report data
- len: length of report data
The function usbd_hid_get_report_trigger is part of the USB Device Function Driver layer of the RL-USB Device Software Stack. Modify this function to the application needs. |