| Electronic Components Datasheet Search |
|
UM0463 Datasheet(PDF) 2 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0463 Datasheet(HTML) 2 Page - STMicroelectronics |
|
2 / 30 page ![]() Contents UM0463 2/30 Contents 1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.1 Functionality of the library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2 Background of ST7 full-speed USB device . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2.1 USB device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 Programming model of the library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.1 Handling control endpoint 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2 Transactions on noncontrol endpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.3 Special note on MCU interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 The USB state machine of the control endpoint . . . . . . . . . . . . . . . . . . 9 3.1 The states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.2 Data structure for the SETUP packet . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.3 Standard requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.4 Nonstandard requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.4.1 SETUP stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.4.2 Data stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Data IN stage with continued data buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 Data IN stage with noncontinued data buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Data OUT stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 3.4.3 Status stage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.5 Processing of standard requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.5.1 Get status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Recipient of the device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 Recipient of the interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 Recipient of the endpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 3.5.2 Clear feature and set feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.5.3 Recipient of device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Recipient of interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 Recipient of endpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 3.5.4 Set address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.5.5 Get descriptor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Constant descriptors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 Nonconstant descriptors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 Standard request with constant descriptors . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |