1. 首页
  2. 移动开发
  3. iOS
  4. USB Multi-Role Device Design By Example

USB Multi-Role Device Design By Example

上传者: 2018-12-29 00:00:19上传 PDF文件 3.29MB 热度 56次
Original USB Design Intent....................................................................................... 1 Host Role Responsibilities........................................................................................ 3 Ease of Use .............................................................................................................. 5 Dual Role Device Implementation ............................................................................ 6 Transforming into a host .................................... ....................................................... 8 Chapter Summary .................................................................................................. 11 Chapter 2: Getting to know EZ-Host and EZ-OTG .................................................... 13 Hardware features .................................................................................................. 13 Central Processing Unit .......................................................................................... 14 Memory Expansion Capability................................................................................ 15 Additional EZ-Host Capability................................................................................. 15 Integrated Timers ................................................................................................... 16 Power Management ............................................................................................... 16 USB Capabilities..................................................................................................... 17 Parallel IO............................................................................................................... 18 Serial IO.................................................................................................................. 19 IO Summary ........................................................................................................... 19 Firmware Features ................................................................................................. 21 BIOS Operation ...................................................................................................... 22 BIOS Memory Management ................................................................................... 23 BIOS Idle Task ....................................................................................................... 25 BIOS Scan Operation ............................................................................................. 26 Other BIOS functions.............................................................................................. 28 Chapter Summary .................................................................................................. 28 Chapter 3: EZ-Host/EZ-OTG Development Environment ......................................... 29 CY16 Firmware Architecture .................................................................................. 31 Frameworks Subsystem......................................................................................... 33 Simple Example #1 - Hello World........................................................................... 33 Target System ........................................................................................................ 34 Simple Example #2 – Using Scan Records............................................................ 38 Simple Example #3 – Buttons and Lights Device .................................................. 39 Simple Example #4 – BAL Host Program .............................................................. 44 Simple Example #5 – Standalone BAL Device ...................................................... 46 Chapter Summary .................................................................................................. 46 Chapter 4: Developing a host application ................................................................. 47 Key Host Controller Concepts ................................................................................ 47 Frameworks Host Controller Implementation......................................................... 50 Device Identification ............................................................................................... 55 Simple Example #6 – Buttons and Lights Host ...................................................... 56 vi Chapter Summary...................................................................................................60 Chapter 5: Concurrent operation as a host and device.............................................61 Simple Example #7 – Concurrent BAL Host and Device........................................63 Simple Example #8 – Using Scan Records 2 .........................................................69 Smart USB Devices ................................................................................................71 Data Acquisition Example .......................................................................................73 Video Black Box Example.......................................................................................76 Chapter Summary...................................................................................................77 Chapter 6: Designing a dual-role device ...................................................................79 New dual-role concepts ..........................................................................................80 Simple Example #9 - Dual-role Buttons and Lights Device ....................................80 Simple Example #10 – Standalone Dual-role Buttons and Lights Device..............89 OTG behind-the-scenes..........................................................................................92 Session Request Protocol.......................................................................................95 Chapter Summary...................................................................................................97 Chapter 7: Using EZ-Host/EZ-OTG in coprocessor mode as a USB host controller 99 USB Host Controller Driver ...................................................................................104 Low-level Communications Driver ........................................................................106 Link Control Protocol.............................................................................................107 Root hub functionality............................................................................................108 Testing our host controller ....................................................................................108 Chapter Summary.................................................................................................111 ....................................................... 8 Chapter Summary .................................................................................................. 11 Chapter 2: Getting to know EZ-Host and EZ-OTG .................................................... 13 Hardware features .................................................................................................. 13 Central Processing Unit .......................................................................................... 14 Memory Expansion Capability................................................................................ 15 Additional EZ-Host Capability................................................................................. 15 Integrated Timers ................................................................................................... 16 Power Management ............................................................................................... 16 USB Capabilities..................................................................................................... 17 Parallel IO............................................................................................................... 18 Serial IO.................................................................................................................. 19 IO Summary ........................................................................................................... 19 Firmware Features ................................................................................................. 21 BIOS Operation ...................................................................................................... 22 BIOS Memory Management ................................................................................... 23 BIOS Idle Task ....................................................................................................... 25 BIOS Scan Operation ............................................................................................. 26 Other BIOS functions.............................................................................................. 28 Chapter Summary .................................................................................................. 28 Chapter 3: EZ-Host/EZ-OTG Development Environment ......................................... 29 CY16 Firmware Architecture .................................................................................. 31 Frameworks Subsystem......................................................................................... 33 Simple Example #1 - Hello World........................................................................... 33 Target System ........................................................................................................ 34 Simple Example #2 – Using Scan Records............................................................ 38 Simple Example #3 – Buttons and Lights Device .................................................. 39 Simple Example #4 – BAL Host Program .............................................................. 44 Simple Example #5 – Standalone BAL Device ...................................................... 46 Chapter Summary .................................................................................................. 46 Chapter 4: Developing a host application ................................................................. 47 Key Host Controller Concepts ................................................................................ 47 Frameworks Host Controller Implementation......................................................... 50 Device Identification ............................................................................................... 55 Simple Example #6 – Buttons and Lights Host ...................................................... 56 vi Chapter Summary...................................................................................................60 Chapter 5: Concurrent operation as a host and device.............................................61 Simple Example #7 – Concurrent BAL Host and Device........................................63 Simple Example #8 – Using Scan Records 2 .........................................................69 Smart USB Devices ................................................................................................71 Data Acquisition Example .......................................................................................73 Video Black Box Example.......................................................................................76 Chapter Summary...................................................................................................77 Chapter 6: Designing a dual-role device ...................................................................79 New dual-role concepts ..........................................................................................80 Simple Example #9 - Dual-role Buttons and Lights Device ....................................80 Simple Example #10 – Standalone Dual-role Buttons and Lights Device..............89 OTG behind-the-scenes..........................................................................................92 Session Request Protocol.......................................................................................95 Chapter Summary...................................................................................................97 Chapter 7: Using EZ-Host/EZ-OTG in coprocessor mode as a USB host controller 99 USB Host Controller Driver ...................................................................................104 Low-level Communications Driver ........................................................................106 Link Control Protocol.............................................................................................107 Root hub functionality............................................................................................108 Testing our host controller ....................................................................................108 Chapter Summary.................................................................................................111
用户评论