Академический Документы
Профессиональный Документы
Культура Документы
Acknowledgements xi
Introduction xiii
iii
Contents
2 Supporting USB 25
The Interface in Brief 26
Hosts and Devices 26
Host Responsibilities 27
Device Responsibilities 29
Bus Speeds 31
Endpoints 31
Transfer Types 32
Transactions 32
The Data Toggle 33
Descriptors 34
Mass Storage Requirements 34
Choosing a Device Controller 37
Controllers with Support for Flash Memory 37
Controllers with support for ATA/ATAPI 38
Firmware Options 38
Microchip PIC18F4550 39
Architecture 39
Firmware Support 39
The USB Controller 39
iv
Contents
Responding to Commands 55
The Command Block Wrapper 56
The Command Status Wrapper 60
Managing Communications on the Bulk Endpoints 62
More about STALL 72
Thirteen Cases for Any Situation 73
PC Support 76
Windows 76
Linux 77
5 MultiMediaCard Protocol 93
Command and Response Formats 93
Commands 94
Response Types 94
Token Formats 98
The Commands 99
Classes 99
Commands Used by Mass-storage Devices 100
Registers 101
v
Contents
vi
Contents
vii
Contents
9 Directories 201
The Contents of an Entry 201
File Entries 202
Directory Entries 205
The Volume Label Entry 206
Subdirectory Entries 207
Handling Long File Names 207
LFN Entries 207
The Checksum 209
Creating a Short File Name 210
viii
Contents
ix
Contents