CMP EMBEDDED.COM

Login | Register     Welcome Guest  
HOME DESIGN PRODUCTS COLUMNS E-LEARNING CONFERENCES CODE FORUMS/BLOGS NEWSLETTERS CONTACT FEATURES RSS RSS

Listing 2: This sample report descriptor is for a device that sends and receives two vendor-defined bytes of data

hid_report_desc_table:
db 06h, A0h, FFh ; Usage Page (vendor defined) 
db 09h, A5h ; Usage (vendor defined)
db A1h, 01h ; Collection (Application)
db 09h, A6h ; Usage (vendor defined)
;The input report
db 09h, A7h ; Usage (vendor defined)
db 15h, 80h ; Logical Minimum (-127)
db 25h, 7Fh ; Logical Maximum (128)
db 75h, 08h ; Report Size (8) (bits)
db 95h, 02h
; Report Count (2) (fields)
db 81h, 02h ; Input (Data, Variable, Absolute)
;The output report
db 09h, A9h ; Usage (vendor defined)
db 15h, 80h ; Logical Minimum (-128)
db 25h, 7Fh ; Logical Maximum (127)
db 75h, 08h ; Report Size (8) (bits)
db 95h, 02h ; Report Count (2) (fields)
db 91h, 02h ; Output (Data, Variable, Absolute)
db C0h ; End Collection
end_hid_report_desc_table:

Embedded.com Career Center
Looking for a new job?
SEARCH JOBS

Browse all jobs

SPONSOR
RECENT JOB POSTINGS





 :