usb: hid: implement idle rate
Idle rate functionality has been implemented for HID USB class. Bassed on Device Class Definition for Human Interface Devices 1.11. Tested with USB3CV and host with idle rate. Signed-off-by: Marcin Szymczyk <Marcin.Szymczyk@nordicsemi.no>
This commit is contained in:
parent
6a4ddffaf9
commit
d5b79ff42c
5 changed files with 169 additions and 37 deletions
|
@ -3,6 +3,7 @@
|
|||
*
|
||||
* Copyright(c) 2015,2016 Intel Corporation.
|
||||
* Copyright(c) 2017 PHYTEC Messtechnik GmbH
|
||||
* Copyright(c) 2018 Nordic Semiconductor ASA
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
@ -86,6 +87,9 @@
|
|||
#define MAX_LOW_POWER 0x32
|
||||
#define MAX_HIGH_POWER 0xFA
|
||||
|
||||
/* Highest value of Frame Number in SOF packets. */
|
||||
#define USB_SOF_MAX 2047
|
||||
|
||||
/* bmAttributes:
|
||||
* D7:Reserved, always 1,
|
||||
* D6:Self-Powered -> 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue