HID 보고서 설명자(Report Descriptor) 스크립트 언어 연구 노트2

33083 단어
HID Script :
Global item--
Main item --
local item --
   Main ,parser , , , ,
Main , Input Output , bit ,
Collection bit , End Collection
paser , Collection End Collection " ",
, ," "
HID 1 pc HID . <HID .pdf> ,(gliethttp)
Collection End Collection Main item , :
1010 00 nn 1100 00 nn, Collection 1 , :
1010 00 01=0xA1, Collection(Application)
:0xA1,0x01;0xA1 1 1 ,0x01 Application HID
0x01,pc HID parser 0x01 ,
Application , HID (Report Descriptor)
Application ,Application <HID .pdf>
:mouse keyboard, Collection(Application) mouse
keyboard, Usage , :Usage(KeyBoard),
pc HID paser , bits ,
pc HID KeyBoard API , HID
pc HID paser , DDK HID ,
, HID , HID API , ,
HID DDK bit .
  Input Output bits ,
usb pc pc , bits
bits bits pc HID API
( mouse keyboard), , Usage 1 ,
   HID 2 , 2 bits ,
bits , , , keyboard ,
HID script keyboard bits ,mouse
HID script mouse bits , Input
, : , Report ID ,ID bits ,
pc HID ID, bits API ,
bits API .
   2 、4 , little-endian .
Logical Minimum , Logical Maximum ,
, bits , , , HID1.1
.
   HID script PC HID
, , PC bit ,HID1.1
NULL , .
----------------------------------------------
Main item -- 5 :
1)Input
2)Output
3)Feature
4)Collection
5)End Collection
----------------------------------------------
Global item-- 13 :
1)Usage Page
2)Logical Minimum ---var array
3)Logical Maximum
4)Physical Minimum
5)Physical Maximum
6)Unit Exponent --- , 10
7)Unit --- : 、 、 .
8)Report Size
9)Report ID --- ID
10)Report Count
11)Push
12)Pop
13)Reseved ---
----------------------------------------------
local item -- 11 :
1)Usage --- Uage Page item , Keyboard ,LEDs ,
                        pc HID ,Input Output
                       Usage , : Keyboard LEDs .
2)Usage Minimum --- array bitmap usage
                       Usage Uage Page , Usage ,
                        , , Input Output
                       bits , .( , )
                        :Gliethttp[5][6][80],Gliethttp ,5 Usage Page(5),6
                        Usage(6), HID Descriptor Tool 6 , :
                       Usage(Keyboard), 80 Keyboard , :
            KeyBoard LeftArrow, Usage_Minimum(80) Usage_Minimum(KeyBoard LeftArrow)
                       Usage Report Count bits ,Usage Minimum
                          Usage Maximum Usage Report Count bits                           。
3)Usage Maximum --- array bitmap usage
4)Designator Index
5)Designator Minimum
6)Designator Maximum
7)String Index
8)String Minimum
9)String Maximum
10)Delimiter
11)Reserved
local Main item, Main item local
local ; local item Main item
Report Count=0, local item Main item ( Collection)
   <HID .pdf>, , ,
HID Descriptor Tool pc HID parser
,linux , , linux
, parser , ,
, , , ; 2 english ,
HID (gliethttp).

좋은 웹페이지 즐겨찾기