LZ85194
IrDA Control Peripheral Engine User
’
s Guide
43
Report Format Samples
With regards to the detailed Report Format, one must refer to the Universal Serial Bus
(USB) Device Class Definition for Human Interface devices (HID) Firmware Specification.*
Following are the brief examples of the report format that can be used with the descriptor
samples provided in the
‘
Appendix
’
section.
Note that the following examples are given for the design reference purpose only, and DO
not guarantee the complete performance of the desired peripheral devices.
NOTE:
*Universal Serial Bus (USB) Device Class Definition for Human Interface devices (HID) Firmware
Specification Version 1.0, Final.
Three Button Mouse
In general, EP1 should be used for the data transfer. If the peripheral device happens to
be a keyboard with the pointing device capability, EP1 should be used for the keyboard
functionality, and EP3 for the pointing device capability.
Table 34. Three Button Mouse Format
BYTE
ASSIGNMENT
DESCRIPTION
1st Byte
Button
Set
‘
1
’
to the assigned bit when the designated button is pressed.
Bit 7: 0
Bit 6: 0
Bit 5: 0
Bit 4: 0
Bit 3: 0
Bit 2: Center
Bit 1: Right
Bit 0: Left
Define the present location, where the pointing cursor locates as
‘
00
’
and send the amount of the movement (positive towards right,
see Figure 14) by HEX data.
2nd Byte
Amount of the movement
on the X-axis (positive
towards right)
Example: If the pointing cursor moves amount of
‘
1
’
to the right, it
should send
‘
01h
’
, while the amount of
‘
1
’
to the left should send
‘
FFh
’
. If not moved, send
‘
00h
’
.
Define the present location, where the pointing cursor locates as
‘
00
’
and send the amount of the movement (positive towards
downward, see Figure 14) by HEX data.
Example: If the pointing cursor moves amount of
‘
1
’
to downward,
it should send
‘
01h
’
, while the amount of
‘
1
’
to upward should sent
‘
FFh
’
. If not moved, send
‘
00h
’
.
3rd Byte
Amount of the movement
on the Y-axis (positive
towards downward)