60
CY4636 WirelessUSB™ LP Keyboard Mouse Reference Design Kit User Guide, Doc. # 001-70355 Rev. *A
Code Examples
Table 5-3. USB Report Usage IDs
The RadioParams Report is 8 bytes long and has 6 data fields.
Table 5-4. USB Report Format
■
Requesting a New Battery Reading
When the Bridge receives a control endpoint request from the host with the following parameters, it
returns an 8-byte RadioParams report over the control endpoint. An attached LP device should send
an updated battery report whenever a reconnect or a change in the battery level occurs.
Control endpoint request for new battery reading.
Table 5-5. USB Set Report
■
Obtaining the RadioParams Report
When the bridge receives a control endpoint request from the host with the parameters listed in the
following table, it returns an 8-byte RadioParams report over the control endpoint.
Control endpoint request for RadioParams report are listed here.
Usage ID
Usage Name
0x00
Undefined
0x01
WirelessUSB keyboard
0x 02
WirelessUSB mouse
0x03-0x1F
RESERVED
0x 20
Battery Level
0x 21
WirelessUSB Channel
0x 22
WirelessUSB PN Code
0x 23
Corrupt Packets
0x 24
Packets Transferred
Byte
Use
Range
0
Report ID #
0x04
1
Battery Level
0 – 0x0A
2
Channel #
0 – 0x4D
3
PN Code
0 – 0x30
4-5
Corrupt Packets
0 – 0xFFFF
6-7
Packets Transferred
0 – 0xFFFF
Value
bmRequestType
0x21 (To Device, Type = Class, Recipient = Interface)
Request Code
0x09 (Set Report)
wValue
0x0304 (Feature Report, ReportID = 4)
wIndex
0x0000 = Kbd, 0x0001 = mouse