March 2011
Programmer’s Guide: MSP430 USB API Stack for
CDC/HID/MSC
MSP430
ABSTRACT
The MSP430 USB API implements three USB device classes: the Communications
Device Class (CDC), the Human Interface Device (HID) class, and.the Mass Storage
class (MSC). It is designed for easy creation of USB devices on the MSP430.
Contents
1
2
3
Introduction .....................................................................................................................................4
The MSP430 USB Developers’ Package .......................................................................................4
Glossary...........................................................................................................................................5
3.1 USB Definitions .........................................................................................................................5
3.2 API Stack Definitions.................................................................................................................6
System Overview and Architecture...............................................................................................8
4.1 MSP430 USB API Stacks: Overview........................................................................................8
4.1.1 Devices Classes Supported by the MSP430 API Stacks ..............................................8
4.1.2 Development Environments Supported by the API .......................................................8
4.1.3 Hardware Requirements................................................................................................8
4.1.4 USB Certification ...........................................................................................................9
4.1.5 Stack Organization ........................................................................................................9
4.1.6 Usage of MCU Peripheral Resources .........................................................................11
4.1.7 Memory Requirements ................................................................................................11
4.1.8 Using an RTOS ...........................................................................................................12
4.1.9 Support for Composite USB Devices ..........................................................................12
4.1.10 Release Notes, and Migration from Previous Versions...............................................13
4.2 The Communications Device Class (CDC) API ......................................................................14
4.3 The Human Interface Device (HID) API ..................................................................................17
4.4 The Mass Storage Class (MSC) API.......................................................................................19
MSP430 USB Descriptor Tool ......................................................................................................23
5.1 What is the Tool? ....................................................................................................................23
5.2 What is an “Interface”?............................................................................................................23
5.3 What are USB Descriptors? ....................................................................................................23
5.4 When to Use the Tool?............................................................................................................23
5.5 Using the Tool .........................................................................................................................24
5.6 The Tool’s Generated Output..................................................................................................26
5.7 Accessing Interfaces from the Application ..............................................................................27
5.8 USB Configurations.................................................................................................................27
USB States/Events and How They Relate to the API.................................................................28
6.1 Initializing the API....................................................................................................................29
6.2 Detection of the Host via VBUS ..............................................................................................29
6.3 Connection to the Host............................................................................................................30
6.4 Enumeration............................................................................................................................30
4
5
6
1
全部评论(0)