intTypePromotion=1
zunia.vn Tuyển sinh 2024 dành cho Gen-Z zunia.vn zunia.vn
ADSENSE

USB Complete fourth- P52

Chia sẻ: Cong Thanh | Ngày: | Loại File: PDF | Số trang:10

63
lượt xem
3
download
 
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

USB Complete fourth- P52:This book focuses on Windows programming for PCs, but other computers and operating systems also have USB support, including Linux and Apple Computer’s Macintosh. Some real-time kernels also support USB.

Chủ đề:
Lưu

Nội dung Text: USB Complete fourth- P52

  1. I hope you’ve found this book useful. For more about USB developing, includ- ing device and host example code and links to product information, tutorials, articles, news, and updates, please visit my website at www.Lvr.com.
  2. Index Numerics analyzer, protocol hardware 410–412 8051 148 software 412–413 8b/10b encoding 436–437 Andrew Pargeter & Associates 203 ANSI INCITS 230-1994 436 A AnyHID 293 A connector. See Standard-A connector AnywhereUSB 455 abstract control model 172 API Access Denied 182 defined 6 ACK 47 .NET and 243–252 PID 42 Windows 212 Setup packet 70 architecture, dual-bus 13 ACK Transaction Packet 55 ARM controller 148, 156 in bulk transfer 72–73 arming (endpoint) 40 in control transfer 65 ASIC device controller 138 in isochronous transfer 83 Asix Electronics Corporation 175 ACM driver 175 Asynchronous transfer mode 169, 170 ACPI 407 AT command set 169, 172, 174 active extension cable 454–455 AT2LP 188 address AT89C513x 148 device 129 AT90USB1287 484 endpoint 110 AT90USBx 148 Address field 433 AT91SAM7S 156 Address state 93 AT91SAM7S/SAM9R64 148 addressing triple 35 ATA/ATAPI 185 A-device 472 ATM 169, 170, 172 ADSL modem 169, 170 Atmel 148, 484 Alcor Micro Corporation 182, 194 Attached state 95 alternate interface 108 attenuation 454 Am186CC 148 AU9525 194 AMD controllers 148 audio class 165–169 INF file 239 487
  3. Index Autoplay 189 boot protocol 285 AVR 148 BOS descriptor 114 AVR32UC3 148 bRequest 119 AWG (wire) bridge cable 206 SuperSpeed 458, 461 broadcasting 8 USB 2.0 450, 451 buffer AX88172A 175 device 139 host 87 B SuperSpeed hub 387 buffer descriptor, PIC 149–151 B & B Electronics 465 bulk transfer 71–75 babble 383 purpose 37–38 back voltage test 393 burst transaction balanced line 462 bulk and interrupt 57 bAlternateSetting 108 isochronous 84 bandwidth bus bulk transfers 74 driver 215 control transfers 68–69 length, maximum 455, 461 interrupt transfers 78–79 power 390–393 isochronous transfers 84 states (USB 2.0) 425–429 use of 86 bus speed. See speed battery charging 393–396 battery-backed RAM 141 battery-powered host 390 C BCD 100 C++ 244 bcdDevice 102 C161U 148 B-device 472 C18 C compiler 152 bDeviceClass 102 descriptor 284–285 bDeviceProtocol 101 HID code 293 bDeviceSubclass 101 WinUSB and 349 Belcarra Technologies Corporation 175 C8051F34x 145, 148 bEndpointAddress 110 cable binary device object store descriptor 114 compatibility (USB 2.0/USB 3.0) 457 binary-coded decimal 100 host-to-host 461 bInterfaceClass 108 length (USB 3.0) 461 bInterfaceProtocol 110 segment speed (USB 2.0) 440 bInterfaceSubClass 110 shielding 464 bInterval 112 USB 2.0 450–455 bit stuffing 430, 431 capacitance, device 393 Bitwise Systems, Inc. 145 capacitive load 454 blittable 250 CAPI 172 Bluetooth 109 captive cable 452, 453–454 bMaxBurst 57 catalog file 236, 423 bMaxPacketSize0 101 CBI protocol 184 bMaxPower 104, 392 CBW 185 488
  4. Index CCID. See smart card CLR (.NET) 212–213, 244 CCS C compiler 152 Code Mercenaries 182 CDC. See communications device class ColdFire 175 cell phone 170 collection (HID) 287 ceramic resonator 139 in INF file 237 certificate store 423 COM port, virtual 160 Certified USB logo 415, 419 See also communications device class Certified Wireless USB 466 Command Block Wrapper 185 characteristic impedance Command Status Wrapper 186 full/high speed cable 451 communications device class 169–176 SuperSpeed cable 458 See also COM port, virtual chip, USB. See interface chip, USB; microcon- compatible ID 237 troller compiler Chirp J and Chirp K 92–93, 428–429 ARM 156 chkinf 240 for Microchip chips 152 class code Keil (EZ-USB) 153 device 101 compliance tests 415–419 interface 109 back voltage 393 class installer 241 composite device class key 229 CDC 171–172 classes, USB defined 19 audio 165–169 driver 214 communications device class 169–176 installing 238 content security 176–177 compound device 19 device firmware upgrade 177–179 bus power and 397 HID 180–182 Suspend current 400 IrDA 183–184 configuration list of 165 assigning 94 mass storage 184–189 getting and setting 132 personal healthcare 189–190 configuration descriptor 103–105 printer 190–192 subordinate descriptors and 97 smart card 192–194 Connect state 427 still image capture 194–197 connector test and measurement 197–198 Powered-B 460 video 198–202 SuperSpeed 458–460 Clear Feature 127 USB 2.0 451–453 client driver 210, 213–215 Container ID 388 clock device capability descriptor 115 accuracy 432–433 content security class 176–177 device 139 control read transfer 62 CloseHandle 262, 265 SuperSpeed 65 489
  5. Index control transfer 61–71 abandoning 123 D class request 136 Data field 434 Data stage 119–121 Data J and Data K 426 purpose 36 See also High-speed Data J and Data K Setup stage 118–119 data packet standard requests 124–135 bulk transfer 74 Status stage 121–122 control transfer 68 vendor request 136 interrupt transfer 77, 83 control write transfer 62 isochronous transfer 83 SuperSpeed 65 Data Packet (SuperSpeed) 53, 54 CP2102 161 Header 65 CPU, device 140 Data Packet Payload 54 See also microcontroller bulk transfer 74 CRC 50 control transfer 68 Data Packet Payload and 54 interrupt transfer 77, 83 Error 330 data phase 43 field 434 data PID sequencing 53 CreateFile 262–264 Data stage 62, 119–121 WinUSB and 350 SuperSpeed 65 crystal oscillator 139 data toggle 51–53 CSM 176 DATA0, DATA1 42 CSPLIT 380 See also data toggle CSW 186 DATA2 42, 52–53 current debug descriptor 115 bus. See bus power debugging inrush 398 interface (Silicon Laboratories) 145 current source driver 445 See also testing CWAV, Inc. 145 decorated name 235 CY7C638xx 182 Default state 93 CY7C64713 148 deferred header packet 406 CY7C67200 EZ-OTG 483 deferred packet 55 CY7C67300 EZ-HOST 483 delay, inter-packet 434 CY7C6801x 148, 153 delayed packet 55 cyclic redundancy check. See CRC descriptor Cypress Semiconductor 188 class- and vendor-specific 99 controllers 148, 153, 182, 483 defined 97 driver 144, 154 HID 281–289 video applications 202 physical (HID) 314 WirelessUSB 466 report (HID) 286–289 See also EZ-USB, specific chip standard 97–98 CyUSB driver 154 WinUSB 346 See also specific descriptor detachable cable 453 DeVaSys Embedded Systems 145 490
  6. Index devcon example 220 differential insertion loss 461 development boards 144–146 DIFx 241 devguid.h 219 Digi International 455 device digital signature 238–239, 423–424 address 129 direct memory access 156 class code 101 DirectInput 182 clock 139 DirectMusic 169 defined 19 DirectShow 202 in PC 145–146 DirectSound 169 maximum number on bus 15 DirectX 169, 182, 202 removing information about 241 Dirid 232 requirements 142–143 disconnect detector (high speed) 446 simplifying development 142 Disconnect state 427 steps in developing 24–26 DLL See also firmware; interface chip, USB; mi- device and class installer 241 crocontroller location 245 device capability descriptor 114 user-mode client driver 213 Device Capacitance ECN 393 DllImport 247 device change notification 265–275 DLP Design 469 device descriptor 99–102 DMA 156 device firmware upgrade class 177–179 DOS 9 device ID 236 double buffers 139 device identification string 236–238 downstream 15 device installer 241 DP. See Data Packet (SuperSpeed) Device Instance ID 226 DPP. See Data Packet Payload device interface GUID 219, 220 driver obtaining 252–254 choosing 144 device key 227 client 213–215 Device Manager 220, 223–226 port 215 Power Management 408 signed. See digital signature device notifications (Windows) 265–275 writing 217–219 device object 211 See also Windows driver device setup GUID 219–220 Driver Install Frameworks 241 class key and 229 driver key 231 Device Simulation Framework 218 Driver Test Manager 423 device_qualifier descriptor 102–103 DSF 218 DEVICE_REMOTE_WAKEUP 127, 128 DTCP 176 DeviceIoControl 212 DTM software 423 devnode 255 dual simplex 457 DFU 177–179 dual-bus architecture 13 Diagnostic device class 101 Differential 0/Differential 1 426 voltage 449 E See also High-speed Differential 0/1 ECM 169, 170, 172 differential envelope detector 446 driver 175 491
  7. Index ECN. See Engineering Change Notice enumeration edge rate 442, 464 defined 89 EEM 169, 170, 172 steps 90–95 driver 175 tips 96–97 EEPROM EOB 56, 59 EZ-USB 153–155 EOP 44, 383, 427, 432 in devices 140 low speed 385 EHCI 216, 217 See also HSEOP simulating 218 EPROM (program memory) 140 EIA/TIA-232 ERDY Transaction Packet 59 compared to USB 3 control transfers and 65 See also RS-232 Latency Tolerance Message and 406 Ellisys 411 ERR 49 embedded host 471–485 PID 43 Embedded Hosts and/or Multiple error checking 50–53 Receptacles 452, 480–482 Error condition, Request 122 encoding eSATA 3 SuperSpeed 436–437 Ethernet USB 2.0 430–433 standard 169 End of Burst. See EOB vs. USB 3, 10 End of Packet. See EOP Ethernet control model 169, 170 End-of-High-speed-Packet 429 Ethernet emulation model 169, 170 endpoint example code address 110 descriptors 281–285 companion descriptor. See Superspeed detecting devices 252–275 endpoint companion descriptor HID application 320–343 defined 34–35 using 143 descriptor 110–112 WinUSB application 350–372 field 433 exit latencies 135 high bandwidth 78, 84 EXT PID 43, 44 Status Change 383, 387 Extensible Host Controller Interface. See usages 111 xHCI endpoint zero 34 extension cable 454–455 ENDPOINT_HALT 127, 128 eye pattern template 446 Engineering Change Notice EZ-USB 148, 152–156 Device Capacitance 393 development boards 145 Interface Association Descriptor 106 See also Cypress Semiconductor list of 14 Pull-up/pull-down resistors 444 Suspend Current Limit Changes 400 F USB 2.0 Phase-locked SOFs 399 FDO 211 Enhanced Host Controller Interface. See Feature item (HID) 298, 299 EHCI Feature report 339–343 API 318 filter DO 211 492
  8. Index Firewire. See IEEE-1394 GNU GCC compiler 156 firmware Gold Tree 419 example code 143 GPIB. See IEEE-488 for control transfers 123–124 GT/s 437 interrupts and 45 GUID 219–221 overview 137–138 See also device interface GUID; device set- portability 139 up GUID See also specific chip flash drive. See mass storage floppy drive 185 H flow control condition 59 handle 249 Frame Number field 433 closing 264 frame, defined 33 obtaining 262–264 Framework, Microchip USB 152 WinUSB 350–352 Freescale Semiconductor 175 handshake phase 43 FT232BM 158 handshake, high-speed detection 385, 428– FT232BM/2232H/4232H. See USB UART 429 FT245BM 158 hardware key 227 FT245BM/2232H/4232H. See USB FIFO Hayes command set 169 FTDI header sequence number 55 chips 158 hibernation 407 See also specific chip, USB UART, USB HID FIFO API summary 315–320 full speed 4 boot protocol 285 cable segment 440 descriptors 281–289 function, USB 18 Feature report 318, 339–343 FUNCTION_SUSPEND 127, 128, 405–406 finding a device 320–327 Global item 302–311 INF file 239 G Input report 317–318, 330–339 galvanic isolation 465 Local item 311–314 garbage collection 244 Main item 298–302 generic parent driver 214 Output report 317–318, 328–330 Get Configuration 132 overview 180–182 Get Descriptor 93, 130 physical descriptor 314 Get Idle 289, 290 report structure 295–298 Get Interface 133 requests 289–292 Get Max Lun 188 requirements 278–281 Get Port Status 92, 122 HID Descriptor Tool 296 Get Protocol 289, 291 HidD_FreePreparsedData 343 Get Report 289, 290 HidD_GetAttributes 321–323 Get Status 126 HidD_GetFeature 318, 341–343 Global item (HID) 302–311 HidD_GetHidGuid 253 global suspend 400 HidD_GetInputReport 318, 343 Globally Unique Identifier. See GUID HidD_GetPreparsedData 323–324 493
  9. Index HidD_SetFeature 318, 339–341 hub HidD_SetOutputReport 318, 341 class 388 HIDmaker 293 Container ID 115 HidP_GetButtonCaps 327 controller (SuperSpeed) 387 HidP_GetCaps 324–326 controller (USB 2.0) 375 HidP_GetValueCaps 327 defined 373 high speed 4 driver 215 cable segment 440 INF file 239 detecting device removal 448 maximum in series 455, 461 reason for selecting 444 power 396–399 switching to 447 root 15, 376 high-bandwidth endpoint 78, 84 USB 2.0 374–385 high-power device 392 USB 3.0 385–388 High-speed Data J and Data K 428 hub depth 55, 387 high-speed detection handshake 385, 428– human interface device class. See HID 429 Hyde, John 483 High-speed Differential 0/Differential 1 428 High-speed Disconnect 429 High-speed Idle 429 I High-speed Squelch 429 I/O request packet 87, 210 HI-TECH C compiler 152 I2C HNP 474–476 compared to USB 3 host EEPROM 141 computer 15 USB transceiver 484 controller 15, 216–217 IAD. See interface association descriptor embedded 471–485 IAR Systems 156 latency 88 ICC 192 responsibilities 20–22 ICCD 193 See also OTG; driver icon Host Negotiation Protocol. See HNP USB 2.0 452 host-to-host communications 205–207 USB 3.0 460 hot pluggable 2, 454 ID pin 452 Hot Reset 438 Idle 427 HSEOP 429, 432 See also High-speed Idle 429 HSSOP 429 idProduct 102 See also Product ID idVendor 102 See also Vendor ID IEEE 802.3 169 IEEE-1284 190, 191 IEEE-1394 compared to USB 3 vs. USB 11 IEEE-488 197, 198 compared to USB 3 494
  10. Index impedance IrLAP 183 characteristic (full/high speed cable) 451 IRP 87, 210, 214–215, 412 characteristic (SuperSpeed cable) 458 ISDN 169, 170, 172 measuring 446 iSerialNumber 102 output (high speed) 445 See also serial number output (low/full speed) 444 ISO/IEC 26907/8 466 Imports statement 244 isochronous delay 135 IN Isochronous Timestamp Packet 53, 82 defined 34 isochronous transfer 80–85 PID 42 purpose 38 transaction 35 isochronous, defined 80 InBand Reset 438 isolation, galvanic 465 INF file 231–240 ISP1181B/83 158 driver key and 231 ISP1301 484 enumeration and 94 ISP1362 484 Inf2Cat 236 ISP1582/3 157 Infineon 148 ISP1583 188 Infrared. See IrDA ISP1761 485 Input item (HID) 298–300 IsReference 250 Input report 330–339 ITP. See Isochronous Timestamp Packet API 317–318 inrush current 398 insertion loss, differential 461 J instance key 227 J state 426, 428 Intel controllers 148 jitter 433 inter-chip connection 455–456 JoyWarrior 182 interface Jungo Ltd. 175, 203 alternate 108 class code 109 K defined 105 K state 426, 428 descriptor 107–110 keep-alive signal 400 getting and setting 133 Keil compiler 153 interface association descriptor 105–107 kernel mode 210–211 CDC 171–172 kernel32.dll 245 interface chip, USB 156–161 kernel-mode client driver 213–215 See also microcontroller Keyspan 455 Interop 245 KeyWarrior 182 InteropServices 244 KLKUSB220 175 inter-packet delay 434 KMDF 218 interrupt transfer 75–80 library 236 purpose 38 K-Micro 175 IntPtr 249 IOCTL (media serial number) 177 IP (Internet Protocol), to access device 455 L IrDA bridge 183–184, 469 Last Packet Flag. See LPF 495
ADSENSE

CÓ THỂ BẠN MUỐN DOWNLOAD

 

Đồng bộ tài khoản
2=>2