Download STM32Cube USB device library

Transcript
UM1734
Contents
6.2
6.3
6.4
6.5
Mass storage class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
6.2.1
Mass storage class implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
6.2.2
Get Max MUN (class-specific request) . . . . . . . . . . . . . . . . . . . . . . . . . 34
6.2.3
MSC Core files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
6.2.4
Disk operation structure definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
6.2.5
Disk operation functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Device firmware upgrade (DFU) class . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.3.1
Device firmware upgrade (DFU) class implementation . . . . . . . . . . . . . 39
6.3.2
Device firmware upgrade (DFU) Class core files . . . . . . . . . . . . . . . . . . 41
Audio class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
6.4.1
Audio class implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
6.4.2
Audio core files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6.4.3
How to use this driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.4.4
Audio known limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Communication device class (CDC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.5.1
Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6.5.2
Data IN transfer management (from device to host) . . . . . . . . . . . . . . . 48
6.5.3
Data OUT transfer management (from host to device) . . . . . . . . . . . . . 48
6.5.4
Command request management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6.5.5
Command device class (CDC) core files . . . . . . . . . . . . . . . . . . . . . . . . 48
6.5.6
How to use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.5.7
CDC known limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6.6
Adding a custom class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6.7
Library footprint optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
7
Frequently-asked questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
8
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
DocID025934 Rev 3
3/59
3